simulink model from matrix

1 回表示 (過去 30 日間)
Tomas Iesmantas
Tomas Iesmantas 2011 年 2 月 22 日
Hy, Maybe some of you encountered a problem, when you need to build automaticaly a simulink model just from matrix, where elements (0,1,-1) shows how elements (their type also privided in other file) are connected between each other. E.g.modelling air pressure drop in air compresor, filter and dryer which are connected in serial way (compressor->filter->dryer), connection matrix is [0,-1,0; 1,0,-1; 0,1,0]. Is there any posibility just to feed matlab (throuth some m-file code) with input being that matrix (and other need characteristics) and as output obtain simulation resul, when model is constructed automaticaly according to provided matrix? Some guidelines would be very appreciated.

採用された回答

Gautam Vallabha
Gautam Vallabha 2011 年 2 月 22 日
Hi Tomas,
You can write a MATLAB function that takes the matrix and uses the Simulink API to automatically create, save, and simulate the model:
Gautam

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by