Help with If else statement
2 views (last 30 days)
Show older comments
Konstantina Vaitsi
on 12 May 2020
Commented: Konstantina Vaitsi
on 12 May 2020
I have a series of x numbers and I want to create a script where "if x<5 then y = 50-0.5*x else y = 50+0.5*x and y = 0 if 50-0.5*x<0". How can I write this in octave/matlab?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Assembly in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!