Hi, all. It might be a simple question for you, but I got confused on the following sentence:
findall(0, 'type', 'figure').
what this 0 means?
Thanks a lot!
Best Answer
The 0 stands for the root of the graphic object system, the parent of the figures. You would use 0 for findobj or findall if you want to search over all figures.
You might also see reference to groot. groot is the newer name for the graphics root, and you can use either groot or 0 for R2014b or later. Eventually the ability to use 0 might go away, but I would not expect that for years yet.
Out = cellfun(@(x)findall(0,'Tag','img'), a, 'Unif',0);
It will likely be necessary to experiment with that to get it to work with your images.
I cannot test this with your images, so I am posting it as UNTESTED CODE. (If it or some version of it does not work in your application, I will delete my Answer.)
Best Answer