MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by mary freiling
on 18 Nov 2013

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.)

*No products are associated with this question.*

## 1 Comment

## Image Analyst (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/106549#comment_180623

We don't know that you have an answer, so the way it's supposed to go is you post your answer first.