when i want to modify the input number of certain component through script,error happens
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
wenchao zhang
am 24 Mär. 2023
Kommentiert: wenchao zhang
am 25 Mär. 2023
if i replace num with real num, like 17, it works, any one who knows why?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1335109/image.png)
0 Kommentare
Akzeptierte Antwort
drummer
am 24 Mär. 2023
I'm not familiar with this function, but as you declared num before, try to call it without ' '.
set_param('text/BC1', 'Inputs', num);
Cheers
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!