image disappears when the button is not clicked
古いコメントを表示
Hello,
I make a simple GUI on matlab with the button, but the image only appears when i click on the button, and the image disappears when i don't click on the button, there is only black image as the background.
Please help me in out from this error. Thanks
11 件のコメント
Walter Roberson
2013 年 3 月 15 日
Please show the parts of your code that have to do with showing the image.
Image Analyst
2013 年 3 月 15 日
What error? It seems like it's operating like it's supposed to. It starts with a black image window, then when you click a button you display the image. Isn't that what you wanted? What is the error message? http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
tedy
2013 年 3 月 15 日
Walter Roberson
2013 年 3 月 15 日
Using "image" as a variable name is going to cause you problems.
What white line? Your code does not have any lines.
Are your two axes overlapping ?
tedy
2013 年 3 月 15 日
Walter Roberson
2013 年 3 月 15 日
perhaps you want to add
drawnow()
after the takepicture() call.
tedy
2013 年 3 月 16 日
tedy
2013 年 3 月 16 日
Walter Roberson
2013 年 3 月 16 日
編集済み: Walter Roberson
2013 年 3 月 16 日
At the moment we have no reason to know that the axes are not overlapped, and no reason to know that "hold" is not on on the axes.
Jan
2013 年 3 月 16 日
@tedy: Please edit the original question and insert enough details to allow an answer. Currently the readers have to guess to many details. Thanks.
Image Analyst
2013 年 3 月 16 日
Can you upload a zip with the fig file, the m-file, and the images?
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で White についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!