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

5 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Vector Fields 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by