필터 지우기
필터 지우기

Making a 3D moving plot.

조회 수: 7 (최근 30일)
David Corella López
David Corella López 2020년 12월 20일
답변: Abhishek Gupta 2020년 12월 23일
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!

채택된 답변

Abhishek Gupta
Abhishek Gupta 2020년 12월 23일
Hi,
Referring to the following MATLAB Answer, which might help you in achieving the task: -

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by