Professional Documents
Culture Documents
Ñ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 *
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 =
rand(6,3)
ans =
randn(6,3)
ans =
rand(6,3)
ans =
randn(6)
ans =
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 =
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 =
invhilb(4)
ans =
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 *
A.\B
ans =
1.0000 0 0
0 0.2000 0
0 0 0.1111
A^3
ans =
A*A*A
ans =
A.^B
ans =
1 1 1
1 5 1
1 1 9
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 *
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 =
polih(A)
{ Unrecognized function or variable 'polih'.
}
poly(A)
ans =
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 *
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 =
sqrtm(A)
ans =
funm(A,@sin)
ans =
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 =
cellplot(ans)
disp ('Aqui colocar figura 1')
Aqui colocar figura 1
diary off