Professional Documents
Culture Documents
Hiper
Hiper
T(:,:,1) =
1 2 3
4 5 6
T(:,:,2) =
7 8 9
10 11 12
>> T(:,:,3)=[0 0 0; 0 0 6]
T(:,:,1) =
1 2 3
4 5 6
T(:,:,2) =
7 8 9
10 11 12
T(:,:,3) =
0 0 0
0 0 6
>> A(:,:,1)=[linspace(1,3,3);4 5 6] ;
>> A(:,:,2)=zeros(2,3);
>> A(:,:,3)=ones(2,3);
>> a
Undefined function or variable 'a'.
A(:,:,1) =
1 2 3
4 5 6
A(:,:,2) =
0 0 0
MATLAB Command Window Page 2
0 0 0
A(:,:,3) =
1 1 1
1 1 1
>> A=rand(2,3,3)
A(:,:,1) =
A(:,:,2) =
A(:,:,3) =
>> A=rand(2,3,3);
>> reshape(A,3,3,2)
ans(:,:,1) =
ans(:,:,2) =
ans =
0 0 0
0 0 0
1 1 1
MATLAB Command Window Page 3
1 1 1
ans =
0 0 0 1 1 1
0 0 0 1 1 1
ans(:,:,1) =
0 0 0
0 0 0
ans(:,:,2) =
1 1 1
1 1 1
ans(:,:,1) =
0 0 0
0 0 0
ans(:,:,2) =
1 1 1
1 1 1
>> A=rand(2,3,2)
A(:,:,1) =
A(:,:,2) =
>> A=rand(2,3,2)
MATLAB Command Window Page 4
A(:,:,1) =
A(:,:,2) =
>> sum(A)
ans(:,:,1) =
ans(:,:,2) =
>> A=rand(2,2,2)
A(:,:,1) =
0.7513 0.5060
0.2551 0.6991
A(:,:,2) =
0.8909 0.5472
0.9593 0.1386
>> det(A)
Error using det
Input must be 2-D.
ans =
0.3961
ans =
-0.4014
MATLAB Command Window Page 5
>>