Vector field graph from a data file.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Munawar Karim
el 2 de Ag. de 2024
Comentada: Voss
el 5 de Ag. de 2024
I am totally new to Matlab. I have data on file. I need to draw a 2-D vector field graph of the data.
I would appreciate detailed instructions as this is my first attempt as using Matlab.
Much apprrciate any advice.
Regards
0 comentarios
Respuesta aceptada
Voss
el 2 de Ag. de 2024
5 comentarios
Voss
el 5 de Ag. de 2024
Thanks for the file. Here is some example code that reads the file and creates a quiver plot; you can use it as a reference and adapt it to make the plot you actually want to see.
M = readmatrix('Compilation4.xlsx')
x = M(:,1);
y = M(:,2);
u = cos(M(:,3));
v = sin(M(:,3));
quiver(x,y,u,v)
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!