You are on page 1of 13

disp('ÑACATA MARLON')

ÑACATA MARLON
disp('NRC:')
NRC:
CLC
{ Unrecognized function or variable 'CLC'.
}
clc
CLEAR
{ Unrecognized function or variable 'CLEAR'.
}
disp'ÑACATA MARLON'
disp'ÑACATA MARLON'

{ Error: Invalid text character. Check for unsupported symbol,
invisible character, or pasting of non-ASCII characters.
}
disp 'ÑACATA MARLON'
ÑACATA MARLON
disp 'NRC:4140'
NRC:4140
date

ans =

'16-Jun-2022'

clock

ans =

1.0e+03 *

2.0220 0.0060 0.0160 0.0120 0.0070 0.0315

A=[1 2 3;4,5,6;7 8,9]

A =

1 2 3
4 5 6
7 8 9

A(2,3)

ans =

A(3,:)

ans =

7 8 9

A
A =

1 2 3
4 5 6
7 8 9

A(:,1)

ans =

1
4
7

A(3,1:2)

ans =

7 8

A =

1 2 3
4 5 6
7 8 9

A(3,[3 1])

ans =

9 7

A([2 1],2:3)

ans =

5 6
2 3

A(end, [1 3])

ans =

7 9

A =

1 2 3
4 5 6
7 8 9

A(8)

ans =
6

clc
zeros(5)

ans =

0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

zeros(5,3)

ans =

0 0 0
0 0 0
0 0 0
0 0 0
0 0 0

ones(4)

ans =

1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1

ones(4,5)

ans =

1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1

rand(6)

ans =

0.8147 0.2785 0.9572 0.7922 0.6787 0.7060


0.9058 0.5469 0.4854 0.9595 0.7577 0.0318
0.1270 0.9575 0.8003 0.6557 0.7431 0.2769
0.9134 0.9649 0.1419 0.0357 0.3922 0.0462
0.6324 0.1576 0.4218 0.8491 0.6555 0.0971
0.0975 0.9706 0.9157 0.9340 0.1712 0.8235

rand(6,3)

ans =

0.6948 0.7655 0.7094


0.3171 0.7952 0.7547
0.9502 0.1869 0.2760
0.0344 0.4898 0.6797
0.4387 0.4456 0.6551
0.3816 0.6463 0.1626

randn(6,3)

ans =

-1.1135 1.1174 0.0859


-0.0068 -1.0891 -1.4916
1.5326 0.0326 -0.7423
-0.7697 0.5525 -1.0616
0.3714 1.1006 2.3505
-0.2256 1.5442 -0.6156

rand(6,3)

ans =

0.8143 0.6160 0.9172


0.2435 0.4733 0.2858
0.9293 0.3517 0.7572
0.3500 0.8308 0.7537
0.1966 0.5853 0.3804
0.2511 0.5497 0.5678

randn(6)

ans =

-1.1658 0.1873 -0.8880 0.7394 -1.0722 -1.2078


-1.1480 -0.0825 0.1001 1.7119 0.9610 2.9080
0.1049 -1.9330 -0.5445 -0.1941 0.1240 0.8252
0.7223 -0.4390 0.3035 -2.1384 1.4367 1.3790
2.5855 -1.7947 -0.6003 -0.8396 -1.9609 -1.0582
-0.6669 0.8404 0.4900 1.3546 -0.1977 -0.4686

eye(5)

ans =

1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1

eye(5,4)

ans =

1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
0 0 0 0
hilb(4)

ans =

1.0000 0.5000 0.3333 0.2500


0.5000 0.3333 0.2500 0.2000
0.3333 0.2500 0.2000 0.1667
0.2500 0.2000 0.1667 0.1429

hilb(4,3)
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('hil
b', 'C:\Program Files\Polyspace\R2021a\toolbox\matlab\elmat\hilb.m', 30)"
style="font-weight:bold">hilb</a> (<a href="matlab:
opentoline('C:\Program
Files\Polyspace\R2021a\toolbox\matlab\elmat\hilb.m',30,0)">line 30</a>)
CLASSNAME must be 'double' or 'single'.
}
hilb(4)

ans =

1.0000 0.5000 0.3333 0.2500


0.5000 0.3333 0.2500 0.2000
0.3333 0.2500 0.2000 0.1667
0.2500 0.2000 0.1667 0.1429

invhilb(4)

ans =

16 -120 240 -140


-120 1200 -2700 1680
240 -2700 6480 -4200
-140 1680 -4200 2800

B=eye(3)

B =

1 0 0
0 1 0
0 0 1

A =

1 2 3
4 5 6
7 8 9

A+B

ans =

2 2 3
4 6 6
7 8 10

A-B

ans =

0 2 3
4 4 6
7 8 8

A*B

ans =

1 2 3
4 5 6
7 8 9

A/B

ans =

1 2 3
4 5 6
7 8 9

A./B

ans =

1 Inf Inf
Inf 5 Inf
Inf Inf 9

A/B

ans =

1 2 3
4 5 6
7 8 9

A\B
[ Warning: Matrix is close to singular or badly scaled. Results may be
inaccurate. RCOND = 2.202823e-18.]
[ ]

ans =

1.0e+16 *

0.3153 -0.6305 0.3153


-0.6305 1.2610 -0.6305
0.3153 -0.6305 0.3153

A.\B
ans =

1.0000 0 0
0 0.2000 0
0 0 0.1111

A^3

ans =

468 576 684


1062 1305 1548
1656 2034 2412

A*A*A

ans =

468 576 684


1062 1305 1548
1656 2034 2412

A.^B

ans =

1 1 1
1 5 1
1 1 9

C=[4+3i-7j,8;5-3j 10 3+2i;15 -8j,4+3i]


{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ver
tcat')" style="font-weight:bold">vertcat</a>
Dimensions of arrays being concatenated are not consistent.
}
C=[4+3i-7j,8;5-3j 10 3+2i;15 -8j,4+3i]
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ver
tcat')" style="font-weight:bold">vertcat</a>
Dimensions of arrays being concatenated are not consistent.
}
C'
{ Unrecognized function or variable 'C'.
}
C=[4+3i-7j,8;5-3j 10 3+2i;15-8j,4+3i]
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ver
tcat')" style="font-weight:bold">vertcat</a>
Dimensions of arrays being concatenated are not consistent.
}
C=[4+3i-7j, 8;5-3j 10 3+2i;15-8j, 4+3i]
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ver
tcat')" style="font-weight:bold">vertcat</a>
Dimensions of arrays being concatenated are not consistent.
}
C=[4+3i-7j, 8;5-3j 10 3+2i;15-8j, 4+3i]
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ver
tcat')" style="font-weight:bold">vertcat</a>
Dimensions of arrays being concatenated are not consistent.
}
C=[4+3i-7j,8;5-3j103+2i;15-8j,4+3i]
C=[4+3i-7j,8;5-3j103+2i;15-8j,4+3i]

{ Invalid expression. Check for missing multiplication operator,
missing or unbalanced delimiters, or other syntax error. To
construct matrices, use brackets instead of parentheses.
}
C=[4+3i-7j,8;5-3j 10 3+2i;15-8j,4+3i]
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('ver
tcat')" style="font-weight:bold">vertcat</a>
Dimensions of arrays being concatenated are not consistent.
}
A'

ans =

1 4 7
2 5 8
3 6 9

A =

1 2 3
4 5 6
7 8 9

clc
A

A =

1 2 3
4 5 6
7 8 9

cond(A)

ans =

5.0523e+16

det(A)

ans =

-9.5162e-16

diag(A)

ans =
1
5
9

diag(ans)

ans =

1 0 0
0 5 0
0 0 9

eig(A)

ans =

16.1168
-1.1168
-0.0000

inv(A)
[ Warning: Matrix is close to singular or badly scaled. Results may be
inaccurate. RCOND = 2.202823e-18.]
[ ]

ans =

1.0e+16 *

0.3153 -0.6305 0.3153


-0.6305 1.2610 -0.6305
0.3153 -0.6305 0.3153

length(A)

ans =

norm(A)

ans =

16.8481

null(A)

ans =

-0.4082
0.8165
-0.4082

orth(A)

ans =
-0.2148 0.8872
-0.5206 0.2496
-0.8263 -0.3879

pinv(A)

ans =

-0.6389 -0.1667 0.3056


-0.0556 0.0000 0.0556
0.5278 0.1667 -0.1944

polih(A)
{ Unrecognized function or variable 'polih'.
}
poly(A)

ans =

1.0000 -15.0000 -18.0000 -0.0000

rank(A)

ans =

size(A)

ans =

3 3

trace(A)

ans =

15

A =

1 2 3
4 5 6
7 8 9

tril(A)

ans =

1 0 0
4 5 0
7 8 9

triu(A)

ans =
1 2 3
0 5 6
0 0 9

expm(A)

ans =

1.0e+06 *

1.1189 1.3748 1.6307


2.5339 3.1134 3.6929
3.9489 4.8520 5.7552

logm(A)
[ Warning: Principal matrix logarithm is not defined for A with
nonpositive real eigenvalues. A non-principal matrix logarithm is
returned.]
[ > In <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('log
m', 'C:\Program Files\Polyspace\R2021a\toolbox\matlab\matfun\logm.m',
91)" style="font-weight:bold">logm</a> (<a href="matlab:
opentoline('C:\Program
Files\Polyspace\R2021a\toolbox\matlab\matfun\logm.m',91,0)">line
91</a>)]

ans =

-5.3694 + 2.7896i 11.9253 - 0.4325i -5.3431 - 0.5129i


12.2351 - 0.7970i -22.1731 + 2.1623i 12.5449 - 1.1616i
-4.7235 - 1.2421i 12.8547 - 1.5262i -4.1303 + 1.3313i

sqrtm(A)

ans =

0.4498 + 0.7623i 0.5526 + 0.2068i 0.6555 - 0.3487i


1.0185 + 0.0842i 1.2515 + 0.0228i 1.4844 - 0.0385i
1.5873 - 0.5940i 1.9503 - 0.1611i 2.3134 + 0.2717i

funm(A,@sin)

ans =

-0.6928 -0.2306 0.2316


-0.1724 -0.1434 -0.1143
0.3479 -0.0561 -0.4602

A =

1 2 3
4 5 6
7 8 9

B
B =

1 0 0
0 1 0
0 0 1

cat(1,A,B)

ans =

1 2 3
4 5 6
7 8 9
1 0 0
0 1 0
0 0 1

cat(2,A,B)

ans =

1 2 3 1 0 0
4 5 6 0 1 0
7 8 9 0 0 1

num2cell(ans)

ans =

3×6 <a href="matlab:helpPopup cell" style="font-weight:bold">cell</a>


array

{[1]} {[2]} {[3]} {[1]} {[0]} {[0]}


{[4]} {[5]} {[6]} {[0]} {[1]} {[0]}
{[7]} {[8]} {[9]} {[0]} {[0]} {[1]}

cellplot(ans)
disp ('Aqui colocar figura 1')
Aqui colocar figura 1

diary off

You might also like