No arrows in quiver plot
Mostra commenti meno recenti
For some reason there are no arrows in my quiver plot just some weird marks. What am I doing wrong?
if true
clc; clear;
alpha = 0.6; beta = 0.4; rho = 2; gamma = 0.6; phi = 0.7; x = 400; s = 0.2;
l = 100; a = 0.3;
[l,a] = meshgrid(-10:1:10);
lend = NaN(size(l)); aend = NaN(size(l));
%calculate next point from each point
for i=1:length(l)
for j=1:length(a)
lEnd(i,j) = (gamma/rho)*l(i)^(alpha)*a(j)^(1-alpha)*x^(1-alpha);
aEnd(i,j) = s*l(i)^(beta+1)*a(j)^(phi)*x^(-beta) ;
end
end
%plot, arrow directions are changes
quiver(l,a,lEnd-l,aEnd-a,s)
end
Risposte (1)
David Sanchez
il 13 Mag 2013
0 voti
set s=2 (for example), you are scaling the arrows to a very small size.
2 Commenti
Elle
il 13 Mag 2013
Youssef Khmou
il 13 Mag 2013
hi, the arrows look fine, what is the issue?
Categorie
Scopri di più su Vector Fields in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!