Borrar filtros
Borrar filtros

Use excel as input to Simulink model

34 visualizaciones (últimos 30 días)
Lokesh Sathyanarayana
Lokesh Sathyanarayana el 15 de Nov. de 2021
Respondida: Pavan Guntha el 18 de Nov. de 2021
I have a simulink model which has various input parameters. I want tp use an excel sheet or a matlab file to input values into the simulink model. I want to change values in the excel sheet and the simulink model should take the changed values for the simulation without any additional importing in the workspace. Is this possible? I mean change the values in excel sheet, run the simulation and get the updated results. This is what I am looking for.

Respuesta aceptada

Pavan Guntha
Pavan Guntha el 18 de Nov. de 2021
Hi Lokesh,
1) In order to provide inputs to a simulink model from a .mat file you could leverage From File block in Simulink.
2) In order to load the initialization parameters of a Simulink model from a .mat file, you could leverage the callback functions where you can load the parameters into model at appropriate time. For mor information, you could look at the documentation page of Model Callbacks.
Hope this helps!

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by