Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Workspace problems

Subject: Workspace problems

From: Jeanette

Date: 1 Dec, 2010 18:44:08

Message: 1 of 2

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?

Subject: Workspace problems

From: Sean de

Date: 1 Dec, 2010 19:01:07

Message: 2 of 2

"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

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us