[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Quiver example
From: |
Johannes Wolfgang Woger |
Subject: |
Quiver example |
Date: |
Wed, 10 Jun 2009 20:03:05 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090302) |
Does anyone out there have a simple octave program that uses the quiver
function for graphics? I need an example.
Thanks!
Try
function dx = EXP_DGL(x,t)
dx = x;
end
################# Plot anzeigen
t = [0:0.1:10];
x = lsode('EXP_DGL',0.1,t);
plot(t,x)
################# Richtungsfeld anzeigen
x = 0:0.5:5;
t = 0:0.25:5;
for k=1:length(x)
for l = 1:length(t)
DX(k,l) = EXP_DGL(x(k),t(l));
DT(k,l) = 1;
end;
end;
quiver(t,x,DT,DX);
_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
- Quiver example, William Miner, 2009/06/10
- Quiver example,
Johannes Wolfgang Woger <=