Hassan,
Extremely nice tool!
There is a tiny bug in the subfunction getcNodevalue.
Replace
d = findstr(field,'(');
and
idx = str2num(field(d+1));
with
d = findstr(field,'(');
d_e = findstr(field,')');
idx = str2num(field(d+1:d_e-1));
as else the structure will not correctly refresh for structures >(9*1).
Best regards,
Patrice
5
23 Sep 2009
explorestruct
MATLAB Utility for exploring structures and plotting its fields.
It also works in R2009a when you modify the lines 28 to 31
You have to add a first argument 'v0' to line 83 as mentionned Martin Römpert ... but also for EACH line with uitreenode . It will prevent warnings in a standalone mode (MATLAB Compiler). These warnings tell you to add v0 to continue to use this undocumnted feature (uitreenode). I made this modification and now there is no warning at all when I expand my nodes.
A reader on my blog (http://undocumentedmatlab.com/blog/uisplitpane/#comment-658 ) kindly pointed out that these exceptions can be solved by:
t=java.awt.Toolkit.getDefaultToolkit()
ev=t.getAWTEventListeners()
for i=1:length(ev)
str=ev(i).getListener().getClass.toString
if str.indexOf('com.mathworks.mwswing.desk.DTSelect')>=0 || ...
str.indexOf('javax.swing.plaf.basic.BasicLookAndFeel')>=0 || ...
str.indexOf('com.mathworks.widgets.text.mcode.MLintDeco')>=0
t.removeAWTEventListener(ev(i))
end
end
Thanks J :-)
Comment only
07 May 2009
explorestruct
MATLAB Utility for exploring structures and plotting its fields.
Comment only