Examen Parcial 1 Matlab
x=[5 -8 -9 1];
y=[1 2 -6 -4];
log(A)
% ans =
%
% 1.3863 1.6094 -Inf 0
% 0.6931 2.1972 0.6931 1.7918
% 2.63911.3863 2.3026 2.0794
% -Inf 1.9459 2.3979 2.7081
log10(A)
% ans =
%
% 0.6021 0.6990 -Inf 0
% 0.3010 0.9542 0.3010 0.7782
%1.1461 0.6021 1.0000 0.9031
% -Inf 0.8451 1.0414 1.1761
sqrt(A)
% ans =
%
% 2.0000 2.2361 0 1.0000
% 1.4142 3.0000 1.4142 2.4495
%3.7417 2.0000 3.1623 2.8284
% 0 2.6458 3.3166 3.8730
nthroot(x,3)
% ans =
%
% 1.7100 -2.0000 -2.0801 1.0000
nthroot(y,5)
% ans =
%
%1.0000 1.1487 -1.4310 -1.3195
exp(x).*log(x)
% ans =
%
% 1.0e+002 *
%
% 2.3886 0.0000 + 0.0000i 0.0000 + 0.0000i 0
log10(x).*log(x)
% ans =
%% 1.1249 -2.4084 + 5.6743i -2.1896 + 5.9957i 0
A.^2
% ans =
%
% 16 25 0 1
% 4 81 4 36
% 196 16 100 64
% 0 49 121225
A^2
% ans =
%
% 26 72 21 49
% 54 141 104 162
% 204 202 196 238
% 168 212 289 355
2)
x=[15.4 -8.6 - 5.2 1.8]; y=[10.5 2.3 - 3.74.4];
fix(sqrt(x))
% ans =
%
% 3.0000 0 + 3.0000i 1.0000
ceil(exp(y))
% ans =
%
% 36316 1 82
floor(abs(x+y))
% ans =
%
%25 15 6
3)
x=[-3+6i];y=[4-7i];
real(x),imag(x)
% ans =
%
% -3
%
% ans =
%
% 6
real(y),imag(y)
% ans =
%
% 4
%
%
% ans =
%
% -7
abs(y)
% ans=
%
% 8.0623
abs(x.*y)
% ans =
%
% 54.0833
angle(x),angle(y)
% ans =
%
% 2.0344
%
%
% ans =
%
% -1.0517
angle(x)+angle(y)
% ans =
%
% 0.9828...
Regístrate para leer el documento completo.