Drexel dragonThe Math ForumDonate to 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

Topic: variable from function to workspace
Replies: 2   Last Post: Feb 18, 2013 11:37 AM

Advanced Search

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

Posts: 2,357
Registered: 12/6/04
Re: variable from function to workspace
Posted: Feb 18, 2013 11:10 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

zack00 <p.hilovsky@gmail.com> wrote in message <637b3e34-ebb0-4377-ad67-86ec25e2b20c@googlegroups.com>...
> Hello,
> Anybody knows how to transfer a variable between Workspace and a function?
> For example, inside a function I want to export a variable to Workspace or get a variable from Workspace. How should I do?
> Thanks.

function [export_to_Workspace] = function_Name(get_from_Workspace)

You can also use globals (if you really must).

If you are looking for some other solution, can you be more specific?

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-2016. All Rights Reserved.