The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Dump variables to workspace
Replies: 8   Last Post: Apr 15, 2012 6:58 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Peter Russo

Posts: 50
Registered: 6/3/09
Re: Dump variables to workspace
Posted: Apr 15, 2012 4:00 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

ImageAnalyst <> wrote in message <>...
> On Apr 15, 3:16 pm, "Peter Russo" <> wrote:
> > I am trying to debug some code, and would love to be able to dump the active variables into the workspace at a certain point so I can mess around with them. Is this possible? Thanks
> -------------------------------------------------------------------
> What workspace? The "base" workspace? If you have a script, your
> variables are in the base workspace. If you're inside some function
> you're executing, then they are in the private workspace of just that
> function. Regardless, you can "mess around with them" in several
> ways, such as just setting them to a new value in the command window
> once you've stopped at a breakpoint. Or you can double click on the
> variable in the workspace panel and then when it shows up in the
> Variable editor worksheet, you can type in a new value for it.

Sorry, I should have been more clear. I have a function that I am working on, and I'd like it to export the variables it's working with (i guess that would be the private workspace?) into the workspace you can access from the command line (base workspace?). Now that i'm thinking about it i guess I could use "save" to save the variables to a file, then load them back in, but it would be easier if they could go straight from one workspace to another. Thanks

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.