Está en la página 1de 2

x=wavread('xxxx.

wav');
plot(x)
y=fft(y);
plot(y)
a=y.*conj(y)
f=[20:20000];
plot(f,a(20:20000))
onda cuadratica
t=[0:0.01:5];
w=pi
y=a*square(w*t+rho);
plot(t,y)
diente serrucho:
y=a*sawtooth(w*t+rho)
sonido:
w=2*pi*44000
t=[0:0.1/fm:5];
y=a*sin(w*t+rho);
sound(y,fm)
imagine
I=imread('xxxx')
J=im2uint8(I)
imshow(J)..sale
escala gris:
H=Rgb2 gray(I);
imshow(H)..sale gris
I1=I(:,:,1); %1=gris,2=verde,3=azul
imshow(I1)..sale color predominante
I=imread('xxxx')
imshow(I)
improfile
histograma por color:
imhist(I1)%rojo,I2=verde,I3=azul
filtro suavisado
gf=fspecial('gaussian',[7,7],5)%matriz y desviacion
I=imread('....jpg');
gi=imfilter(I,gf,'symetric');
subplot(1,2,1),image(I)
SUBPLOT(1,2,2),image(gi),title('comparando imagen y filtrado')
edges=[];
edges(:,:,1)=edge(I(:,:,1),'sobel');
edges(:,:,2)=edge(I(:,:,2),'sobel');
edges(:,:,3)=edge(I(:,:,3),'sobel');
subplot(2,2,2),imshow(edges(:,:,1)),title('red');
subplot(2,2,3),imshow(edges(:,:,2)),title('green');
subplot(2,2,4),imshow(edges(:,:,3)),title('blue');
subplot(2,2,1),imshow(I);sale y continua
subplot(1,2,1),image(edges),title('combinado');
edges all=edges(:,:,1)+edges(:,:,2)+edges(:,:,3);
subplot(1,2,2),image(edgesall),title('combinado RGB en 1');
si:u'=ru; u(0)=u0
u=dsolve('DU=U/2','U(0)=1/4')
ezplot(u,[0,3])

si: u'=1/4+3v/4 y v'=9/4-5u/4


s=dsolve('DU=1/4+3V/4','DV=9/4-5U/4','t')
U=s.U
V=s.V
seal modulada:
fs=4000000
fc=1000000
t=0:1/fs:1e-4;
am=1
fm=6000;
x=Am*sin(2*pi*fm*t)
beta=1.9;
y=fm mod(x,fc,fs,dev);
z=fm demod(y,fc,fs,dev);
Pyy=periodogram(y);
Hpsd=dspdata.psd(pyy,'fs',fs);
plot(Hpsd)
c=simple(sym('solve(subs(x=0,y=1,x=(-1*ln(2-y)/4)+(1*ln(2+y-c)/4)),c)'))
[x,y]=meshgrid(-2:0.1:2);
z=-x+(-log(abs(2-y))+log(abs(2+y)))/.4;
contourc(z,20)
fplot('(6*exp(4*x)-2/3*exp(4*x)+1)',[-3,3])
laplace

También podría gustarte