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:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Given that you know the different values in advance why not just define

>> t = sort([0 10:10:90 10:10:90 100]);
>> values = [0 1 2 3 4 5 6 7 8 9]; % replace with your required values
>> u = [values; values];
>> tu = [t(:) u(:)];

Then use tu as the variable in a From Workspace block?

To see what this will look like you can plot it in MATLAB
>> plot(tu(:,1),tu(:,2));

(Yes you could use set_param (most likely in a MATLAB function block placed in a triggered subsystem with the trigger being a square wave set at the appropriate frequency but there doesn't seem to be any need to.)


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.