Professional Documents
Culture Documents
PDS Procesamiento Digital de Señales Untels Laboratorio 4 Untecs
PDS Procesamiento Digital de Señales Untels Laboratorio 4 Untecs
pf = p * (1+ igv);
end
ESCRIBIR LA FUNCION:
x=-n:0.1:n;
y=x.^2;
plot(x,y);
grid;
end
MODIFICAR LA FUNCIÓN PARA QUE PODAMOS CALCULAR LA FUNCIÓN DE Y=XP DIALOGO, LA
CONVIERTA EN MATRIZ Y PERMITA VIZUALIZARLA:
x= -p:0.1:p;
y=x.^p;
plot(x,y);
grid;
end
ESCRIBIR UNA FUNCIÓN QUE LEA UNA IMAGEN MEDIANTE UNA VENTANA DE DIALOGO, LA
CONVIERTA EN MATRIZ Y PERMITA VISUALIZARLA:
function [M,N,X]=verImagen
[fichero,p1]=uigetfile(( '*.jpg '),
'imagen a procesar')
s1=strcat(p1,fichero);
[x,map]=imread(s1);
[M,N,T]=size(x);
image(x)
end