how to get zero mean normalized input

how to get zero mean normalized input for for example saw tooth sequence

Risposte (2)

If you already have produced an input signal xin, before using it, you must remove its dc component:
xin=xin-mean(xin)
best regards
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(:));

Categorie

Scopri di più su Programming in Centro assistenza e File Exchange

Prodotti

Richiesto:

il 18 Ott 2018

Risposto:

il 18 Ott 2018

Community Treasure Hunt

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

Start Hunting!

Translated by