Can someone write this out in matlab format so i can check my answer
1 view (last 30 days)
"Use loops and conditional statements to create a 5 x 8 matrix in which the value of each element is equal to the square root of the sum of the element’s indices unless the element is in an even-numbered column or row. The value of an element in an even-numbered column or row is equal to the sum of the element’s indices squared. (The indices of an element in a matrix are the row number and column number of the element.)"