Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Animating lines and curves in matlab

1 回表示 (過去 30 日間)
Anshuman S
Anshuman S 2020 年 2 月 29 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am simulating a solidification problem, where I am developing microstructres with time!
I wanted to know whether anything like this can be done using matlab codes! Thanks
The figure shows initial parabolas at time = 0sec, in some time t the parabola translates in the x-direction to some length 'd'!
I'm very thankfull for any considerations on this post! Thank you!

回答 (1 件)

darova
darova 2020 年 2 月 29 日
I just created data for parabola and moved axis limits
a = 2;
b = 1;
y = linspace(-3,5);
x = a-(y-b).^2;
y = [ y(1) y y(end) ];
x = [ -30 x -30 ];
for i = 1:15
plot(x,y)
xlim([-15 15]-i)
ylim([-4 6])
pause(0.2)
end

この質問は閉じられています。

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by