Plotting data in 3D
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have a matrix that contains magnetic data in 3 axis (x,y,z) along with time (4th column). I need to plot this in a 3D graph, not points but lines of diffeernt color or some kind of mesh/net structure. How can i do that?
2 Commenti
Risposte (1)
KSSV
il 24 Mag 2023
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1392204/plotdata.xlsx') ;
plot3(T.(3),T.(4),T.(5),'r')
7 Commenti
KSSV
il 25 Mag 2023
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1392204/plotdata.xlsx') ;
x = T.(3) ;
y = T.(4) ;
z = T.(5) ;
dx = gradient(x) ;
dy = gradient(y) ;
dz = gradient(z) ;
quiver3(x,y,z,dx,dy,dz)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!