开发者

Matlab: How to clear the previous output image

开发者 https://www.devze.com 2023-04-10 16:38 出处:网络
I define values for the variables and call the function, it returns the 开发者_运维问答output imagein the figure. But when i want to test another set of data, the output image will come out, it\'s tog

I define values for the variables and call the function, it returns the 开发者_运维问答output image in the figure. But when i want to test another set of data, the output image will come out, it's together with the previous output image. How can i solve it, do i need to add what code at the end of the function file?


Either close all before your generate the new figure if you're not interested in the old output figure, or make a figure call before creating the new image to ensure it pops up in a new figure window. Or, you can overwrite the current open figure by setting hold off first, although that's specifically for graphs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号