- x
- y
- complex direction #1, "i"
- complex direction #2, "j"
how to plot a vector?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
The vector questionis F=e^y i + x*e^y j
how do I plot this equation on matlab
1 comentario
Walter Roberson
el 1 de Abr. de 2022
Editada: Walter Roberson
el 1 de Abr. de 2022
Do I understand correctly that you want a plot with four independent directions?
And then F would be the dependent direction, for a total of 5 dimensions in the plot ?
I am not clear as to whether you want exp(1i*y) or exp(y)*1i ?
This will not be a vector. You have absolute minimum of two independent directions, x and y, so your result cannot be less than a surface.
Respuestas (1)
KSSV
el 2 de Abr. de 2022
x = linspace(-1,1) ;
y = linspace(-1,1) ;
[X,Y] = meshgrid(x,y) ;
% F = e^y i + x*e^y j
u = exp(Y) ;
v = X.*exp(Y) ;
quiver(X,Y,u,v)
0 comentarios
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!