Add data type conversion block in simulink model using script
조회 수: 29 (최근 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에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!