Watching plot creation in figure window?

Hi There -
So I want to plot the following:
fft([0;5],4096)
However, I'd like to watch MATLAB trace out the unit circle in figure window.
I have seen my professor do this, however, I don't remember what command he utilized in order to watch the plot get created. Anyone know what he might have done? He did it all in the command window and didn't create any scripts for it.
Thanks!

回答 (1 件)

the cyclist
the cyclist 2014 年 9 月 25 日

0 投票

Here is one way to do something that sounds like what you are asking. (I just used a line as an example.)
N = 1000;
x = 1:N;
y = x;
figure
axis([0 N 0 N])
hold on
for n=2:N
plot(x(n-1:n),y(n-1:n),'')
pause(0.01)
end

1 件のコメント

Lwando Mlindini
Lwando Mlindini 2022 年 7 月 9 日
Thank you @the cyclist, it helped me in my app design

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMeasurements and Spatial Audio についてさらに検索

タグ

質問済み:

2014 年 9 月 25 日

コメント済み:

2022 年 7 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by