Add data type conversion block in simulink model using script
2 ビュー (過去 30 日間)
古いコメントを表示
I have simulink model where I have a lot of input signals. I need to add data type conversion block to all the input signals. How can i do that using script?
0 件のコメント
回答 (1 件)
Fangjun Jiang
2021 年 1 月 28 日
Do a loop, using these functions
delete_line()
add_block()
add_line()
2 件のコメント
Fangjun Jiang
2021 年 1 月 30 日
Your code looks good. Also a good practice to run line by line before running a loop.
>> strcat('Subsystem/',num2str(i),'/')
ans =
'Subsystem/1/'
Not the same as 'Subsystem/1'
参考
カテゴリ
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!