how to extract just a value lower than 1
3 ビュー (過去 30 日間)
古いコメントを表示
Pichawut Manopkawee
2016 年 11 月 8 日
コメント済み: Pichawut Manopkawee
2016 年 11 月 8 日
Hi all,
I have a .mat file containing a varied number from less than 0 to much more than 0. I would like to extract or just concentrate on value just below 0, I will give them as 1. Also, the numbers which are greater than 1, I would give them as 0.
I know if statement is useful for this, but I don't know how to do that. Anyway, is there any function like x(isnan(x))=0 that change the conditional number below 0 to be 1?
Thanks in advance, Pich
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!