matlab如何将数​组中大于某个值的数设​为该值.。

matlab如何将数组中大于某个值的数设为该值

 採用された回答

deprnus
deprnus 2023 年 5 月 22 日

0 投票

a 为数组,
a(a>2)=2;

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB 快速入门 についてさらに検索

タグ

質問済み:

2023 年 5 月 22 日

回答済み:

2023 年 5 月 22 日

Community Treasure Hunt

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

Start Hunting!