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 件のコメント

Jan
Jan 2022 年 5 月 12 日
What exactly is the problem? Do you want to use the file as input, the file name or the contents of the file?
Rushiraj Jani
Rushiraj Jani 2022 年 5 月 12 日
I want to use file as input
Jan
Jan 2022 年 5 月 12 日
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?
Rushiraj Jani
Rushiraj Jani 2022 年 5 月 16 日
Yes

サインインしてコメントする。

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2022 年 5 月 13 日
Use From File block

3 件のコメント

Rushiraj Jani
Rushiraj Jani 2022 年 5 月 16 日
I tried that, but as the matrix is generated from state space model, it is giving data type error
Fangjun Jiang
Fangjun Jiang 2022 年 5 月 17 日
Check the configuration parameters, Data Import/Export. There is a way to set the "initial state" using the saved "states" from a previous simulation.
Rushiraj Jani
Rushiraj Jani 2022 年 5 月 17 日
Ok
I will try. Thanks for the help

サインインしてコメントする。

カテゴリ

製品

リリース

R2020b

質問済み:

2022 年 5 月 12 日

コメント済み:

2022 年 5 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by