simulink use date.xlsx?
1 view (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
TAB
on 9 Apr 2012
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 Comments
More Answers (0)
See Also
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!