If statement with an array

1 次查看(过去 30 天)
Andreas Makrides
Andreas Makrides 2020-11-4
回答: Stephen23 2020-11-4
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
Y = max(0,9.1*Y)

类别

Help CenterFile Exchange 中查找有关 Author Block Masks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by