Read Text File to add Simulink Blocks

Is there a clean way to read in a text file and based on its contents automatically add Simulink blocks based on text file contents?
The idea is to add blocks to a simulink model based on which items are configured in a text file.

 Accepted Answer

You can read in the text file using textread, and add blocks using add_block. Other functions that you can use to automate model creation are under Model Construction.

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!