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: set parameter value
Replies: 8   Last Post: Nov 5, 2012 7:04 AM

Advanced Search

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

Posts: 358
Registered: 1/27/12
Re: set parameter value
Posted: Nov 4, 2012 11:30 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Your question isn't clear, and you haven't supplied enough information.

Do you know what the variable profile is (i.e. how it changes with time) before running the simulation?
If so, just define it in the MATLAB workspace and import it through an Inport or a From Workspace block.

If you want to change a value asynchronously then you have already shown the basic command:
set_param('modelname/variable','value',' ');
Although you need to look at the doc for set_param to see how to use it correctly.
There is also a brief example at


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.