Workspace problems

  • Follow


Hi. I've been having this problem with the workspace. If I run a '.m' file, the workspace does not show any of the variables. If I just type equations in Matlab (not executing from a .m file) the workspace sees them. Also, once a '.m' file runs and I type any of the variables, it does not have them defined. The .m files run fine otherwise. What to do to make the workspace see the variables from .m file code, and be able to retrieve the variable values once the '.m file is done running?
0
Reply Jeanette 12/1/2010 6:44:08 PM

"Jeanette " <jeanette_hariharan@yahoo.com> wrote in message <id651o$lcc$1@fred.mathworks.com>...
> Hi. I've been having this problem with the workspace. If I run a '.m' file, the workspace does not show any of the variables. If I just type equations in Matlab (not executing from a .m file) the workspace sees them. Also, once a '.m' file runs and I type any of the variables, it does not have them defined. The .m files run fine otherwise. What to do to make the workspace see the variables from .m file code, and be able to retrieve the variable values once the '.m file is done running?

The mfiles are likely functions and thus they don't return the variables to the workspace unless told to do so.

>>doc function

For a better understanding
0
Reply Sean 12/1/2010 7:01:07 PM


1 Replies
337 Views

(page loaded in 0.026 seconds)


Reply: