Problem 2609. If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Otherwise 7 is assigned to y.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers377
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
51352 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15672 Solvers
-
315 Solvers
-
404 Solvers
-
Calculate Amount of Cake Frosting
27277 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!