Quiver3 help 3d vector plot Error

2 views (last 30 days)
Robert
Robert on 14 Feb 2015
Commented: Star Strider on 14 Feb 2015
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 Comments
Robert
Robert on 14 Feb 2015
No one can help on this?
Star Strider
Star Strider on 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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!