From: lily on
Thanks Water, the command assignin() is useful, exactly what I wanted. The following information about the use of command assignin() is useful too.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/804