Question: (a) Use for-end loops to create a 47 matrix in which the value of each element is the sum of its cubic indices (the row
(a) Use for-end loops to create a 47 matrix in which the value of each element is the sum of its cubic indices (the row number and column number of the element). For example, the value of element A(2,5) is 133.
(b) Use for-end and if-end loops to count how many elements in the matrix A have the value greater than or equal to 30. Show the script file and the total number of counted elements.
I already have the MATLAB code for part a. However I do not know how to develop a code for part b. I will rate well, thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
