How to check if a matlab handle is a handle of a figure or not ?
To test for a figure handle without risking an error, you do the following:
isFigureHandle = ishandle(h) && strcmp(get(h,'type'),'figure')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With