I still got error: "Invalid setting in Constant block 'Constant' for parameter 'Value'. 'x' is in the place of the 'constant' block where the numeric value is given.
Error in Using set_param
조회 수: 19 (최근 30일)
이전 댓글 표시
I've not been able to set the consant in the "constant" block. I used: set_param('dummy/Constant','x',50) but kept getting eroor "Constant block does not have a parameter named 'x'". 'dummy' is the model name.
Thanks.
댓글 수: 0
채택된 답변
추가 답변 (1개)
Brian B
2014년 7월 14일
Try
set_param('dummy/Constant','Value','50')
Note that the value is also a string.
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!