If statement with an array

I have 1 column (595 values) I want if the value is >0 Y=value*9.1 Else Y=0 I want to make this prositure for each value

回答 (1 件)

Stephen23
Stephen23 2020 年 11 月 4 日

0 投票

Y = max(0,9.1*Y)

カテゴリ

ヘルプ センター および File ExchangeAuthor Block Masks についてさらに検索

質問済み:

2020 年 11 月 4 日

回答済み:

2020 年 11 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by