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.
1
Expert's answer
2015-05-05T07:45:43-0400
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 order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS