Centre and scale x data

조회 수: 6 (최근 30일)
Viraj Nistane
Viraj Nistane 2014년 6월 4일
댓글: Sivakandan Mani 2020년 12월 3일
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
Image Analyst
Image Analyst 2014년 6월 4일
Your question is vague. Attaching a screenshot would help.
Sivakandan Mani
Sivakandan Mani 2020년 12월 3일
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

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

답변 (1개)

Star Strider
Star Strider 2014년 6월 4일
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’

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by