I want to plot the vector field on F=x i+ j
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to plot the vector field on
$\vec F=x\cap i+\cap j$
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)
0 commentaires
Réponse acceptée
Alan Stevens
le 12 Juin 2023
Modifié(e) : Alan Stevens
le 12 Juin 2023
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Vector Fields dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
