How to take the absolute value for 2D spectrum?
5 ビュー (過去 30 日間)
古いコメントを表示
Ilya Grishanovich
2022 年 4 月 21 日
コメント済み: Ilya Grishanovich
2022 年 4 月 21 日
I have 2D spectrum with positive(blue) and negative(red) signals, I want to make all signals positive and to save the received spectra.
How to make it? (thank you in advance)
0 件のコメント
採用された回答
Hiro Yoshino
2022 年 4 月 21 日
try function "abs":
t=-pi:0.01:pi
y= sin(t);
plot(t,y);
y2 = abs(y);
plot(t,y2);
?
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!