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 个评论

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?

请先登录,再进行评论。

回答(1 个)

Use From File block

3 个评论

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.

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息

产品

版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by