Académique Documents
Professionnel Documents
Culture Documents
A=
>> A=[1;2;3;4;5;6;7;8;9]
A=
3
4
A=
5
6
A=
K=
0.6667
5.0000
0.5000 -1.0000
>> 5*U
escalar: U
>> K=U.^2
ans =
K=
10
-5
25
25
P=
UV
>> U.^V
-3
3. -Producto de vectores de
ans =
elemento a elemento
8
>> K=U.*V
K=
>> U'
6
-1
ans =
a elemento
>> K=U./V
2
-1
1
5
>> U.'
ans =
2
-1
1
5
ans =
12
U=
2.2857
3.5714
9
>> A=[2 -1 1 5]; norm(A,2)
Columns 5 through 8
ans =
6.1429
10.0000
7.4286
8.7143
5.5678
>> A=[2 -1 1 5]; norm(A,3)
>> U=(1:2:8)
ans =
U=
5.1299
1
NORMA DE UN VECTOR:
U=(
v1 ; v2 ; v3 )
U: Notacin de norma de U
euclideana
Numeros Complejos:
z=a+bi
Funcion:
Matlab:
IzI
abs(z)
Angulo de z
angle(z)
conj(z)
Imag(z)
imag(z)
Re(z)
real(z)
La unidad imaginaria:
>> i
ans =
ans =
0 + 1.0000i
>> j
5.8310
>> z'
ans =
ans =
-5.0000 - 3.0000i
Ejm:
0 + 1.0000i
La transpuesta conjugada en
Matlab de Z es: u=[1+2i,-5+7i];u'
ans =
1.0000 - 2.0000i
w=
1.0000 + 1.0000i
-5.0000 - 7.0000i
>> z=-5+3i;conj(z)
ans =
-5.0000 - 3.0000i
>> abs(z)
>> angle(z)
ans =
0.7854
plot(x,y,'b');
GRAFICA DE FUNCIONES
hold on;
X=linspace(-2*pi,2*pi,100);
plot(x,z,'r');
Y=cos(x)
title('Funciones:sen(x),cos(x)');
x=2*exp(1):pi/10:2*exp(1);
x');xlabel('X');ylabel('Y')
Ejemplo:
>> x=linspace(-2*pi,2*pi,100000);
y=cos(x);
z=sin(x);
y=cot(cos(x)).*sin(tan(x));
plot(x,y,'-rs','linewidth',1,'MarkerEdgeColor','k
','MarkerFaceColor','g','MarkerSize',5
)
plot(x,y,'b')
x=linspace(-4,2,100);
>> y=sqrt(3-abs(x+1));
>> plot(x,y,'r');
x0
Teorema:
Sea F una funcin contnua en
(,)/F().F()<0
>> x=linspace(-5,5,10000000);
Ejm:
y=exp(x).*(x.^2-1);
x=linspace(-5,5,500);
plot(x,y,'b')
y=exp(x).*(x.^(2)-1);
hold on;
plot([-5,5],[0,0],'k')
zoom on