필터 지우기
필터 지우기

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 CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by