How to use operations in for loop problems
For values of 1 to 60, create a for-loop that does the following. If the value is 1 to 20, have
the operation be number2, if the value is 21 to 40, have the operation be number, and if the
value is 41 to 60, have the operation be √number. Store all 60 results in 3 different variables
that start at 1. With the results, create a 3×20 matrix where the first row is the results of the
first operation, the second row being the results of the second operation, and the final row
being the results of the final operationFor values of 1 to 60, create a for-loop that does the following. If the value is 1 to 20, have
the operation be number2, if the value is 21 to 40, have the operation be number, and if the
value is 41 to 60, have the operation be √number. Store all 60 results in 3 different variables
that start at 1. With the results, create a 3×20 matrix where the first row is the results of the
first operation, the second row being the results of the second operation, and the final row
being the results of the final operation For values of 1 to 60, create a for-loop that does the following. If the value is 1 to 20, have
the operation be number2, if the value is 21 to 40, have the operation be number, and if the
value is 41 to 60, have the operation be √number. Store all 60 results in 3 different variables
that start at 1. With the results, create a 3×20 matrix where the first row is the results of the
first operation, the second row being the results of the second operation, and the final row
being the results of the final operation for loop, operations, matrix MATLAB Answers — New Questions