how to get zero mean normalized input

조회 수: 15 (최근 30일)
ahmad ramadan
ahmad ramadan 2018년 10월 18일
답변: Star Strider 2018년 10월 18일
how to get zero mean normalized input for for example saw tooth sequence
  댓글 수: 1
madhan ravi
madhan ravi 2018년 10월 18일
totally vague provide your code

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

답변 (2개)

Dimitris Kalogiros
Dimitris Kalogiros 2018년 10월 18일
If you already have produced an input signal xin, before using it, you must remove its dc component:
xin=xin-mean(xin)
best regards

Star Strider
Star Strider 2018년 10월 18일
Much depends on what you intend by ‘normalize’.
If you have R2018a or later, use the normalize (link) function. This produces a z-score of your data, the equivalent of (for a vector ‘x’):
zscr = @(x) (x(:) - mean(x(:))) / std(x(:));

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by