plot(rand(10,1));
obj_h = findobj();
get(obj_h,'Type')
ans =
'root'
'figure'
'axes'
'line'
plot(rand(10,1));
obj_h = findobj();
get(obj_h,'Type')
ans =
'root'
'figure'
'axes'
'line'