From: Steven Lord on 15 Mar 2010 11:42 "Husam Aldahiyat" <numandina(a)gmail.com> wrote in message news:hnegtq$js1$1(a)fred.mathworks.com... >I don't want to edit the loop counter, and toc isn't very important >actually, but I want to obtain which variables were used and make new >variables with the exact same name in my new workspace/function, which have >the same values as the previous variables. Also, this needs to be general >(no passing on information from one function to another). > > I think I'm aiming too high but maybe there's something out there? What's your use case? Why are you trying to do this? It sounds like you're trying to "poof" variables into another function's workspace, and that's a Bad Idea in general. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ |