does anyone have the matlab code for removing the negative half of an sinosudal wave
1 回表示 (過去 30 日間)
古いコメントを表示
i guess there would be an function but i dont know what it is...can anyone help
0 件のコメント
採用された回答
the cyclist
2013 年 2 月 27 日
編集済み: the cyclist
2013 年 2 月 27 日
If you just have values in a vector, then
s(s<0) = [];
will remove them (leaving you with a vector of shorter length), or
s(s<0) = 0;
will set the negative values to zero, or
s(s<0) = NaN;
will set them to NaN.
If you mean something else, please provide more detail.
1 件のコメント
Helphelpelectronic
2020 年 11 月 8 日
Can you just say signal<0 for getting it negative values? Because I had an error for doing that while writing a condition for if statement
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!