How do I make this matlab code to plot multiple figures in subsequent 'while' iterations ?
古いコメントを表示
Hi. I'm a beginner in Matlab, I'm working on Image analysis and I think this code segment is supposed to display a plot in a figure everytime the if condition is met. I'M 100% sure that the if condition is met more than once but the program only gives a figure output the first time the if condition is met. It does not gives outputs when the if condition is met in subsequent iterations. It also does this wierd thing where it dsplays the first figure but without the plot in it and only displays the corresponding plot in the figure when the program has finished running. Like I said, I'm a beginner and I have a feeling that this is a minor problem but I just can't figure it out.Please any help will be appreciated. To be clear, I'm trying to plot different data in different figures whenever the if condition is met but it only plots the first time the if condition is met and does nothing in subsequent times.
3 件のコメント
Walter Roberson
2018 年 12 月 18 日
drawnow()
possibly figure() as well
chris oj
2018 年 12 月 18 日
Omer Yasin Birey
2018 年 12 月 18 日
If you see only the first figure, probably the condition is getting met just once. Or maybe you are just seeing the last figure?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!