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 日

0 投票

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 月 2 日
Thank you for your Help. I have standardized the data. Now I need to use the standardized data and perform Dimensionality reduction predominantly PCA and CCA. Could you assist with me with that with steps.
Kunal Kandhari
Kunal Kandhari 2021 年 6 月 2 日
Hi You can refer the following links for implementing PCA and CCA:
For PCA:
For CCA:
The above pages are self explanatory with some piece of code written to help you understand them.
Bhavick Singh
Bhavick Singh 2021 年 6 月 3 日
Hello, thanks for the reply. Is there any code for Curvilinear component analysis?

サインインしてコメントする。

その他の回答 (0 件)

製品

リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by