Preprocessing Data from Excel

조회 수: 5 (최근 30일)
Bhavick Singh
Bhavick Singh 2021년 6월 1일
댓글: Kunal Kandhari 2021년 6월 3일
I have Raw Data in a excel Spreadsheet. I have power, voltage and current according to time. How to I standardized the data. Please assist with steps.
Thank you
  댓글 수: 1
Mathieu NOE
Mathieu NOE 2021년 6월 1일
hello
what do you mean by "standardized " ?

댓글을 달려면 로그인하십시오.

채택된 답변

Kunal Kandhari
Kunal Kandhari 2021년 6월 1일
Hello
You can easily do that by reading the file and calling internal Matlab functions
_______________________________________
Formula for standardization:
where
x=data,
μ=mean,
σ=standard deviatoion
Code for reading file:
T = readtable('fileName.csv','NumHeaderLines',1);
% It will load the file in variable T, and remove the headings
For reading file you can refer:
Assign variables to columns:
power= T.Var1;
voltage=T.Var2;
current=T.Var3;
time=T.Var4;
standardization data:
power=(power-mean(power))/std(power);
voltage=(voltage-mean(voltage))/std(voltage);
current=(current-mean(current))/std(current);
time=(time-mean(time))/std(time);
For mean and standard deviation you can refer:
It will standardization your dataset
  댓글 수: 4
Bhavick Singh
Bhavick Singh 2021년 6월 3일
Hello, thanks for the reply. Is there any code for Curvilinear component analysis?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by