It is a curl error or I am using it wrong?
Mostra commenti meno recenti
Hi, I just want to graph the curl of this vector field:
F(x,y)=-2x ay % just have y direction not x.
Manually the curl gives me: -2 az, but when using the curl function in matlab it gives me -1 (a constant plane in z=-1), why? It suppose to give me a constant plane in z=-2.
code:
[x,y]=meshgrid(0:0.1:5, 0:0.1:5);
Fx=0.*x;
Fy=-2.*x;
rot=curl(x,y,Fx,Fy);
mesh(x,y,rot)
Risposta accettata
Più risposte (1)
Alberto
il 18 Ott 2014
0 voti
Categorie
Scopri di più su Vector Fields in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!