Jack E. Moore III
PS- Also if anyone knows how to call a function from one m-file that
is defined in a seperate m-file this would probably fix the data
passing problem easily.
I would recommend using the function syntax forms of the load and
save commands. Check the documentation for examples.
Ken
-Rob
Use "guidata", and be careful keeping track of stuff. Another trick is to
create a figure with visibility off, and use this as a central storage
facility.
--
Scott
Reverse name to reply
To read:
variablename=getappdata(0,'name');
Dear god, thank you. It's so great to just try a command and it just
works...
Jack E. Moore III
You're welcome. Something to be aware of though: That '0' refers to
the Matlab root, meaning that when you close your figures, that data
space still exists. If you need to clear such a variable, use
rmappdata(0,'name').
I use the figure property called UserData.
set(figure(1) , 'UserData', rand(3))
get(figure(1), 'UserData')
= 0.8147 0.9134 0.2785
0.9058 0.6324 0.5469
0.1270 0.0975 0.9575