Professional Documents
Culture Documents
Matlab
Matlab
A=
10
-3
-3
-3
>> A=[1,:]
??? A=[1,:]
|
Error: Unexpected MATLAB operator.
A=
10
-3
-3
-3
>> A(:,1)
ans =
1
0
0
>> A(2,:,4)
??? Index exceeds matrix dimensions.
>> A(2,:4)
??? A(2,:4)
|
Error: Unexpected MATLAB expression.
>> A(2,[:,4])
??? A(2,[:,4])
|
Error: Unexpected MATLAB operator.
>> A(2,[2:4])
ans =
-3
>> B=[2;5;1;3]
B=
2
5
1
3
>> c=[A,B]
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
A=
10
-3
-3
-3
>> B=[2;8;-4]
B=
2
8
-4
>> C=[A,B]
C=
10
-3
-3
-3
-4
A=
>> B=[13;14;6]
B=
13
14
6
>> X=triangsup(A,B)
??? Error: File: triangsup.m Line: 5 Column: 14
The expression to the left of the equals sign is not a valid target for an
assignment.
>> X=triangsup(A,B)
n=
x=
??? Output argument "X" (and maybe others) not assigned during call to
"C:\Users\hunter\Documents\MATLAB\triangsup.m>triangsup".
>> B
B=
13
14
6
>> X=triangsup(A,B)
n=
x=
??? Output argument "X" (and maybe others) not assigned during call to
"C:\Users\hunter\Documents\MATLAB\triangsup.m>triangsup".
>> n
??? Undefined function or variable 'n'.
>> X=triangsup(A,B)
x=
??? Output argument "X" (and maybe others) not assigned during call to
"C:\Users\hunter\Documents\MATLAB\triangsup.m>triangsup".
>> n
??? Undefined function or variable 'n'.
>> X=triangsup(A,B)
x=
X=
>> n
??? Undefined function or variable 'n'.
>> X=triangsup(A,B)
x=
X=
>> X=triangsup(A,B)
x=
X=
>> X=triangsup(A,B)
x=
X=