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.

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 4월 11일

0 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by