converting values from conditional to single equation
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Najem
am 15 Dez. 2020
Kommentiert: Ali Najem
am 16 Dez. 2020
Hi all
I need to convert this if condition to one equation
let's assume we have this if statment
if x>=0
f = x(i);
else
f = 0.2*(exp(x)-1);
end
can I re-write if statment in one equation ?
Any suggestion would be appreciated
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!