
ajuste para graficar un espectro
Publicado por ADy (3 intervenciones) el 23/09/2007 05:32:36
hola, buena noche!
espero que esten bien, escribo para ver si alguien me puede ayudar como ponerle un ajuste a mi grafica por que los resultados que me arroja no salen muy claros y necesito que sea algo mas definido. A continuacion ingreso el codigo. Espero que me puedan ayudar, de antemano GRACIAS:
load compiduv.vec -ascii;
vel=compiduv(1:end,1);
dir=compiduv(1:end,2);
u=compiduv(1:end,3);
v=compiduv(1:end,4);
x= 0:1:12
t=linspace(0,12,8784);
subplot(3,1,1);
plot(t,u,'b');
grid on;
set (gca,'XTickLabel',{'ene';'mar';'may';'jul';'sep';'nov'});
set(gca,'XColor','red','YColor','red');
xlabel('Año 2000 (días)');
ylabel('Este-Oeste (m/seg)');
text(4.1,15,'Componente U','FontSize',10,'Color','b');
set (gca,'TickDir','out');
% axis off; %para que no ponga los ejes
subplot(3,1,3);
plot(t,v,'r');
hold on;
grid on;
set (gca,'XTickLabel',{'ene';'mar';'may';'jul';'sep';'nov'});
set(gca,'XColor','blue','YColor','blue');
xlabel('Año 2000 (días)');
ylabel('Norte-Sur (m/seg)');
text(4.1,25,'Componente V','FontSize',10,'Color','r');
set (gca,'TickDir','out');
%axis off; %p
LO QUE BUSCO QUE ESAS DOS GRAFICAS SALGAN CON SUS DATOS MAS DEFINIDOS, QUISE UTILIZAR LA FUNCION fft PERO NO SUPE COMO APLICARLA, HABER SI ALGUIEN ME PUEDE ORIENTAR. GRACIAS.
SALU2 ADY
espero que esten bien, escribo para ver si alguien me puede ayudar como ponerle un ajuste a mi grafica por que los resultados que me arroja no salen muy claros y necesito que sea algo mas definido. A continuacion ingreso el codigo. Espero que me puedan ayudar, de antemano GRACIAS:
load compiduv.vec -ascii;
vel=compiduv(1:end,1);
dir=compiduv(1:end,2);
u=compiduv(1:end,3);
v=compiduv(1:end,4);
x= 0:1:12
t=linspace(0,12,8784);
subplot(3,1,1);
plot(t,u,'b');
grid on;
set (gca,'XTickLabel',{'ene';'mar';'may';'jul';'sep';'nov'});
set(gca,'XColor','red','YColor','red');
xlabel('Año 2000 (días)');
ylabel('Este-Oeste (m/seg)');
text(4.1,15,'Componente U','FontSize',10,'Color','b');
set (gca,'TickDir','out');
% axis off; %para que no ponga los ejes
subplot(3,1,3);
plot(t,v,'r');
hold on;
grid on;
set (gca,'XTickLabel',{'ene';'mar';'may';'jul';'sep';'nov'});
set(gca,'XColor','blue','YColor','blue');
xlabel('Año 2000 (días)');
ylabel('Norte-Sur (m/seg)');
text(4.1,25,'Componente V','FontSize',10,'Color','r');
set (gca,'TickDir','out');
%axis off; %p
LO QUE BUSCO QUE ESAS DOS GRAFICAS SALGAN CON SUS DATOS MAS DEFINIDOS, QUISE UTILIZAR LA FUNCION fft PERO NO SUPE COMO APLICARLA, HABER SI ALGUIEN ME PUEDE ORIENTAR. GRACIAS.
SALU2 ADY
Valora esta pregunta


0