Preprocessing Data from Excel

2 vues (au cours des 30 derniers jours)
Bhavick Singh
Bhavick Singh le 1 Juin 2021
Commenté : Kunal Kandhari le 3 Juin 2021
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 commentaire
Mathieu NOE
Mathieu NOE le 1 Juin 2021
hello
what do you mean by "standardized " ?

Connectez-vous pour commenter.

Réponse acceptée

Kunal Kandhari
Kunal Kandhari le 1 Juin 2021
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 commentaires
Bhavick Singh
Bhavick Singh le 3 Juin 2021
Hello, thanks for the reply. Is there any code for Curvilinear component analysis?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by