Matlab GUI figure axes goes blank after using slider ca. 20 times.

1 回表示 (過去 30 日間)
Marc Jakobi
Marc Jakobi 2013 年 9 月 5 日
Hi.
I have written a code for a GUI figure that creates a contour using sliders.
The first problem was that after running the callback function a few times (ca. 20-50), all the contours from the previous inputs would overlap, filling the axes with what looked like random colours and lines.
I managed to prevent this by clearing the axes at the beginning of the function so that a new contour is created every time.
But that solution only changed the bug. Now, after running it 20-50 times the axes just goes blank.
Unfortunately, I am having trouble connecting to the network drive the figure is stored on right now, so I cannot post excerpts from the code. I will do this once I get connected.
Has anyone had the same problem before and found a solution or is this a Matlab bug? The exported standalone version has the same bug.
Thanks!
Marc

採用された回答

Marc Jakobi
Marc Jakobi 2013 年 9 月 5 日
編集済み: Marc Jakobi 2013 年 9 月 5 日
Just found a variable that does not get defined at a certain value of one of the sliders. Making sure it always gets defined seems to have fixed the problem.
I'll post again if it persists.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by