Quiver3 help 3d vector plot Error
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
All i would like to do is plot a vector field and examine the field at a certain point.
My field is represented by
E = p*cos(phi) + p*sin(phi) + z^2 Im not sure how to add the unit vectors in this text but please assume these are the
U_Rho , U_Phi , and U_z directions.
So far i have
[p,phi,z] = meshgrid(0:.2:2*pi,0:.2:2*pi,0:.2:2*pi);
quiver3(p,phi,z,p*cos(phi),psin(phi),z^.2)
I have used this before in 2D with the regular quiver and it has worked just fine. Now I'm getting an error that says
Error using ==> mtimes Inputs must be 2-D, or at least one input must be scalar. To compute elementwise TIMES, use TIMES (.*) instead.
What am i doing wrong
2 Commenti
Star Strider
il 14 Feb 2015
We might, but there's significant information missing. Give an example of your data, and what you want as a result. It’s not obvious to me. For a quiver3 plot you need origins and derivatives for each argument. Please give examples of these, and the range of data (ρ, φ, z) you are interested in.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Vector Fields in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!