[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems to make a multiplot with the standard output setuped like gra
From: |
fermin |
Subject: |
problems to make a multiplot with the standard output setuped like graphic terminal |
Date: |
Thu, 02 Nov 2000 13:51:08 +0000 |
Hello:
I will be glad if somebody could helpme with the problem i get when i
execute this octave program "muelle1.m" thath calls to a function in the
file "ocil1.m"
Thankyou very much.
function oscil1 = cil (ci,t)
global k c
oscil1 = zeros (2,1);
x = ci (1);
v = ci(2);
oscil1 (1) = v;
oscil1 (2) = -k*x-c*v;
endfunction
global k c
k = 2;
c = 0.6;
y=lsode("oscil1",[0.5 1],[0:.1:50]);
gnuplot_has_multiplot = 1.0;
subplot(2,1,1)
title('Representacion de la Posicion y la Velocidad de un Oscilador
Amortiguado')
xlabel('Tiempo')
ylabel('Amplitud')
plot(y(:,1),";POSICION;",y(:,2),";VELOCIDAD;")
subplot(2,1,2)
title('Representacion de la Posicion frente a la Velocidad de un Oscilador
Amortiguado')
xlabel('Velocidad')
ylabel('Posicion')
plot(y(:,1),y(:,2),";POSICION FRENTE VELOCIDAD;")
gnuplot_has_multiplot = 1.0;
gset term gif
gset output "muelle15437.gif"
gnuplot_has_multiplot = 1.0;
replot
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- problems to make a multiplot with the standard output setuped like graphic terminal,
fermin <=