Is there a way to know how many figures are opened in matlab?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use:
You can also use what @triazotan suggested, using the findobj function. However it will be slower, because you need to go through all of your objects.
Edit:
I’ve decided to see how findobj works exactly. It is a much more complicated way of going through all of the objects in get(0,’Children’)
Here is small digest from the file that is being called from findobj:
Check out the builtin( ‘get’, 0, ‘ShowHiddenHandles’ ) which is essentially a get(0,’Children’) in the middle:
Thus, using findobj is clearly an overkill.