If statement with an array

4 visualizzazioni (ultimi 30 giorni)
Andreas Makrides
Andreas Makrides il 4 Nov 2020
Risposto: Stephen23 il 4 Nov 2020
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

Risposte (1)

Stephen23
Stephen23 il 4 Nov 2020
Y = max(0,9.1*Y)

Categorie

Scopri di più su Author Block Masks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by