Hi, i'm using matlab mobile and i'd like to know if i can do animations in this app

2 ビュー (過去 30 日間)
Junior Joel Aguilar Hancco
Junior Joel Aguilar Hancco 2019 年 11 月 3 日
編集済み: Cris LaPierre 2019 年 11 月 3 日
x=linspace(0,1,100);
y=linspace(0,2,200);
t=linspace(0,1,20);
z=zeros(length(x),length(y),length(t));
for cnt=1:length(t)
z(:,:,cnt)=sin(2 * pi * x' / 0.5) * cos(2 * pi * y / 0.3) * t(cnt);
end
for cnt=1:length(t) [Y,X]=meshgrid(y,x);
surf(X,Y,z(:,:,cnt)) zlim([-1 1]);
hold off;
pause(0.1);
end

回答 (0 件)

コミュニティ

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by