Making a 3D moving plot.
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
David Corella López
le 20 Déc 2020
Réponse apportée : Abhishek Gupta
le 23 Déc 2020
Hello to everyone!
I need how to make a moving 3D plot.
Particularly, I need to plot a bidimensional wave throughout time.
The code I'm using is:
close
clc
clear
x1=linspace(-7, 7, 120);
y1=linspace(-7, 7, 120);
%t1=linspace(0, 10, 120);
[x, y]=meshgrid(x1, y1);
z=sin(0.2
*(x.^2+y.^2)-2.5*0);%0 should be 't'
surf(x, y, z)
xlabel('t(s)','FontSize',16)
ylabel('x(m)','FontSize',16)
zlabel('y(x, t)(m)','FontSize',16)
colorbar
How could I represent the successive 3D plots in the time?
Thank you in advance!
0 commentaires
Réponse acceptée
Abhishek Gupta
le 23 Déc 2020
Hi,
Referring to the following MATLAB Answer, which might help you in achieving the task: -
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Objects 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!