フィルターのクリア

Find and replace array elements that meet a condition

8 ビュー (過去 30 日間)
Phoebe Armitage
Phoebe Armitage 2020 年 11 月 15 日
コメント済み: Ameer Hamza 2020 年 11 月 15 日
I have an array
I have alreay found values in that array the equal 360 and replaced them with 0.
My question is, how do I then find values greater than 360 and replace them with 'that value - 360' ?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 15 日
You need to replace the value, just use rem()
x = 0:1000;
y = rem(x, 360)
  2 件のコメント
Phoebe Armitage
Phoebe Armitage 2020 年 11 月 15 日
Thank you!
Ameer Hamza
Ameer Hamza 2020 年 11 月 15 日
I am glad to be of help!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by