Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1494
Number of posts: 2174

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Random seed in Simulink Posted by giug on 7 Apr 2009 at 2:36 AM
Not the embedded matlab function, even if I think that it has to work well, but MATLAB function, and in the properties of the block you have to specify "rand" or "randn".
I try this

constant (1) --> Matlab function (rand) --> scope.

It gives me always different values
Thread Tree
tako_bell Random seed in Simulink on 7 Apr 2009 at 12:55 AM
giug Re: Random seed in Simulink on 7 Apr 2009 at 1:11 AM
tako_bell Re: Random seed in Simulink on 7 Apr 2009 at 1:41 AM
giug Re: Random seed in Simulink on 7 Apr 2009 at 2:10 AM
tako_bell Re: Random seed in Simulink on 7 Apr 2009 at 2:27 AM
giug Re: Random seed in Simulink on 7 Apr 2009 at 2:36 AM
tako_bell Re: Random seed in Simulink on 7 Apr 2009 at 2:51 AM
giug Re: Random seed in Simulink on 7 Apr 2009 at 3:06 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.