You are on page 1of 7

00-21-5D-60-13-B2

>> A=[1 4 10 9;0 -3 6 3;0 0 -3 -3]

A=

10

-3

-3

-3

>> A=[1,:]
??? A=[1,:]
|
Error: Unexpected MATLAB operator.

>> A=[1 4 10 9;0 -3 6 3;0 0 -3 -3]

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=[1 4 10 ;-3 6 3;0 -3 -3]

A=

10

-3

-3

-3

>> B=[2;8;-4]

B=

2
8
-4

>> C=[A,B]

C=

10

-3

-3

-3

-4

>> A=[2 4 5;0 5 9;0 0 6]

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=

Error in ==> triangsup at 2


n=length(B)

??? 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=

Error in ==> triangsup at 2


n=length(B)

??? 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=

Error in ==> triangsup at 2


n=3;

??? 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=

You might also like