control parameters of a simulink block
이전 댓글 표시
Hi,
Is it possible to control parameters of a simulink block with another block? Say create a block which controls the 'seed' value of 'Random Number Generator'.
Thanks Senmeis
채택된 답변
추가 답변 (2개)
Ryan G
2012년 8월 27일
0 개 추천
You can do this by utilizing a MATLAB function that can call the set_param command. You may be able to use the interpreted MATLAB function which would be similar but I never tested it for set_param.
However, you cannot change the seed of the random number generator during simulation as it is not tunable during simulation.
Owen
2012년 8월 28일
0 개 추천
댓글 수: 2
Kaustubha Govind
2012년 8월 29일
Owen: I see. Your question threw me off: "Is it possible to control parameters of a simulink block with another block?" - suggests that you want to control parameters based on the output of another block.
If you simply need to control parameters before running the model, please follow TAB's suggestion.
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!