62 492
Assignments Done
98,8%
Successfully Done
In June 2018

Answer to Question #52347 in MatLAB | Mathematica | MathCAD | Maple 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.
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 order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions