フィルターのクリア

Quiver3 help 3d vector plot Error

1 回表示 (過去 30 日間)
Robert
Robert 2015 年 2 月 14 日
コメント済み: Star Strider 2015 年 2 月 14 日
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 件のコメント
Robert
Robert 2015 年 2 月 14 日
No one can help on this?
Star Strider
Star Strider 2015 年 2 月 14 日
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by