Effacer les filtres
Effacer les filtres

simulink use date.xlsx?

1 vue (au cours des 30 derniers jours)
li xinjun
li xinjun le 6 Avr 2012
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.

Réponse acceptée

TAB
TAB le 9 Avr 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.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Model Editing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by