Está en la página 1de 6

>> M=([100:-2:88])

M=

100

98

96

94

>> N=M(2)

N=

98

>> M([3:6])

ans =

96

94

92

>> M([1:3:6])

ans =

100

94

>> n=M([7:-3:3])

n=

90

92

90

88

88

94

>> n=M([7:-2:3])

n=

88

92

96

>> R=([1:3] [4:6])


??? R=([1:3] [4:6])
|
Error: Unbalanced or misused parentheses or brackets.

>> a=[1:3]

a=

>> b=[4:6]

b=

>> R=([a.^2 b.^2])

R=

16

25

36

>> R=([a.^2;b.^2])

R=

1
16

4
25

9
36

>> 5=R(2,1)
??? 5=R(2,1)
|
Error: The expression to the left of the equals sign is not a valid target for an
assignment.

>> R(2,1)=5

R=

25

>> S=R'

S=

25

9
36

36

>> I=[100;010;001]

I=

100
10
1

>> I=[1 0 0;0 1 0;0 0 1]

I=

>> T=[I S]

T=

25

36

>> V=T(2,4)

V=

>> V=T([1:3],[2,4])

V=

>> W=T([2:3],[1,5])

W=

25

36

>> X=T([1:2],[1:4])

X=

>> X=T([1:2],[2:5])

X=

25

>> P=T([1:3],[2:4])

P=

>> Y=

También podría gustarte