SilentButDeadly
Senior member
11.* a. Create a three-dimensional array D whose 3 "layers" are these matrices:
A=[3 -2 1;6 8 -5;7 9 10]
B=[6 9 -4;7 5 3;-8 2 1]
C=[-7 -5 2;10 6 1;3 -9 8]
b. Use MATLAB to find the largest element in each layer of D and the largest element in D.
a. I got D=cat(3,A,B,C)
b. I am stuck on this part... Only thing I can think of is a=max(D🙂,:,1)); b=max(D🙂,:,2)); c=max(D🙂,:,3));
Then I do max(D) to try and find the largest element in D.
Nothing is working right on this problem for me, and I have been trying everything I know. Anyone have a solution for Part B?
A=[3 -2 1;6 8 -5;7 9 10]
B=[6 9 -4;7 5 3;-8 2 1]
C=[-7 -5 2;10 6 1;3 -9 8]
b. Use MATLAB to find the largest element in each layer of D and the largest element in D.
a. I got D=cat(3,A,B,C)
b. I am stuck on this part... Only thing I can think of is a=max(D🙂,:,1)); b=max(D🙂,:,2)); c=max(D🙂,:,3));
Then I do max(D) to try and find the largest element in D.
Nothing is working right on this problem for me, and I have been trying everything I know. Anyone have a solution for Part B?