Problem 44470. Add 3 (x<=100) Or Subtract 100 and add 3(100<x)
Add 3 to every element. However, if the value is greater than 100, subtract 100 and add 3.
eg.
input x = [45 106; 67 112]
output y = [48 9 ;70 15]
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers49
Suggested Problems
-
18632 Solvers
-
Calculate the area of a triangle between three points
2939 Solvers
-
Matlab Basics - Convert a row vector to a column vector
628 Solvers
-
Matlab Basics - Set unwanted parts of a vector to zero
246 Solvers
-
192 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!