how to get zero mean normalized input
11 次查看(过去 30 天)
显示 更早的评论
how to get zero mean normalized input for for example saw tooth sequence
回答(2 个)
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
0 个评论
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(:));
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!