How to use user defined .mat file with multiple datatypes as input to simulink function block?

I have .mat file with multiple datatypes and structure. Can I use this .mat file as an input parameter to the MATLAB simulink function block as it is? The data has been generated from continuous time identified state space model (idss format)

4 Comments

What exactly is the problem? Do you want to use the file as input, the file name or the contents of the file?
Please think twice: A file name or the contents of the file?
"The data has been generated from continuous time identified state space model (idss format)" - does this matter?

Sign in to comment.

Answers (1)

Use From File block

3 Comments

I tried that, but as the matrix is generated from state space model, it is giving data type error
Check the configuration parameters, Data Import/Export. There is a way to set the "initial state" using the saved "states" from a previous simulation.

Sign in to comment.

Products

Release

R2020b

Asked:

on 12 May 2022

Commented:

on 17 May 2022

Community Treasure Hunt

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

Start Hunting!