I want to plot the vector field on F=x i+ j

5 ビュー (過去 30 日間)
Atom
Atom 2023 年 6 月 12 日
編集済み: Alan Stevens 2023 年 6 月 12 日
I want to plot the vector field on
$\vec F=x\cap i+\cap j$
Invalid use of operator.

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON
Also how to plot the vector field of F=2*i+j?
How to do that
[x,y] = meshgrid(-3:.15:3,-3:.15:3);
Fx = x;
Fy = 1;
figure;
quiver(x,y,Fx,Fy,'k','linewidth',1)

採用された回答

Alan Stevens
Alan Stevens 2023 年 6 月 12 日
編集済み: Alan Stevens 2023 年 6 月 12 日
Do you mean like this?
[x,y] = meshgrid(-3:.15:3,-3:.15:3);
Fx = x;
Fy = ones(size(y)); %%%%%%%%%%%
figure;
quiver(x,y,Fx,Fy,'k','linewidth',1)
For 2*i + j juat make Fx = 2*ones(size(x)).

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by