Add data type conversion block in simulink model using script
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Fangjun Jiang
el 28 de En. de 2021
Do a loop, using these functions
delete_line()
add_block()
add_line()
2 comentarios
Fangjun Jiang
el 30 de En. de 2021
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'
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!