フィルターのクリア

simulink use date.xlsx?

1 回表示 (過去 30 日間)
li xinjun
li xinjun 2012 年 4 月 6 日
I have made an Subsystem in simulink,and which has 4 inputs:Type,L,W and H.Now I have an Excel file which records about more than 10000 Types,and for each Type has its L,W and H. In this data.xlsx ,the data has 4 columns.I wish the 4 inputs of this subsystem are "edit"(I can enter by myself).And when I input a type name in "Type" ,the simulink can search in the first column in data.xlsx,if find the same type ,it can read the corresponding L,W and H from data.xlsx to the "edit" dialog of L,W and H on the subsystem input dialog.But when it can't find the same Type, it needs User to continue edit the rest 3 data and it can save this 4 data to data.xlsx automatically .I think this is very hard to get,How can I do I haven't find it? Thank you.

採用された回答

TAB
TAB 2012 年 4 月 9 日
There is no block to directly read or manipulate .xlsx files from simulink.
For this requirement, write MATLAB code which implements xlsx reading searching algorithm and pass the code output to simulink through base workspace or mat-file.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by