Can you swap simulink blocks?
Show older comments
Is there a way to switch one simulink block directly for another (without using the simulink library browser)? Example: I am using a display block to show engine_speed (using a 'From Workspace' block), but I want to use a scope block. Can you directly swap 'scope' for 'display' and still maintain the connection that originally existed between 'display' and 'engine_speed'?
Answers (1)
Fangjun Jiang
on 23 Aug 2011
0 votes
Yes, if you are up to writing a little bit script. I've done that. It's not that hard actually. The main function is replace_block().
Categories
Find more on Simulink Functions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!