# Answer to Question #52347 in Quantitative Methods for Ray

Question #52347

Create two multi-dimensional arrays:

- a 10 x 10 x 10 numerical array (3-D) and

- a 5 x 5 x 5 x 5 numerical array (4-D)

where each value in each array corresponds to the multiplication of its indices.

- a 10 x 10 x 10 numerical array (3-D) and

- a 5 x 5 x 5 x 5 numerical array (4-D)

where each value in each array corresponds to the multiplication of its indices.

Expert's answer

__Answer__*a) a 10 x 10 x 10 numerical array (3-D)*

for i=1:1:10

for j=1:1:10

fork=1:1:10

M(i,j,k)=i*j*k;

end

end

end

M

*b) a 5 x 5 x 5 x 5 numerical array (4-D)*

for i=1:5

for j=1:5

fork=1:5

fort=1:5

D(i,j,k,t)=i*j*k*t;

end

end

end

end

D

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment