Read Text File to add Simulink Blocks

4 views (last 30 days)
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

Kaustubha Govind
Kaustubha Govind on 11 Apr 2011
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

Find more on Interactive Model Editing 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!