Centre and scale x data
Mostra commenti meno recenti
I have to fit a curve for a custom equation with the curve obtained from my data. How can I centre and scale x data in this case?
3 Commenti
José-Luis
il 4 Giu 2014
Centre around what? Scale to what?
Image Analyst
il 4 Giu 2014
Your question is vague. Attaching a screenshot would help.
Sivakandan Mani
il 3 Dic 2020
Hi Jose-Luis,
I have 30 days of data with 1 hour time resolution, now I want centre for 5 days then do FFT. How to do that in matlab?
could you kindly suggest me the step, which need to be followed?
Thanks and regards,
Siva
Risposte (1)
Star Strider
il 4 Giu 2014
You could always use the Z-score. It centers about the mean and scales by the number of standard deviations:
x = 10+50*randn(5,1); % Create data
Zsc = @(x) (x - mean(x))./std(x); % Z-score function
Zx = Zsc(x) % Z-scores of ‘x’
Categorie
Scopri di più su Descriptive Statistics and Visualization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!