Borrar filtros
Borrar filtros

Quiver3 help 3d vector plot Error

1 visualización (últimos 30 días)
Robert
Robert el 14 de Feb. de 2015
Comentada: Star Strider el 14 de Feb. de 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 comentarios
Robert
Robert el 14 de Feb. de 2015
No one can help on this?
Star Strider
Star Strider el 14 de Feb. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by