How can we write data from mat file to Simulink data dictionary.

7 ビュー (過去 30 日間)
Akshay Chandel
Akshay Chandel 2021 年 9 月 28 日
コメント済み: Akshay Chandel 2021 年 9 月 28 日
I am learning MBD. In that I have to initialise many ports and constants with specific name in sldd file. Problem here is that my data is in the xlsx file which I am importing it to workspace and then storing it as .mat file as sldd has only option to read .mat or .m files.
When I do that it throws me message that reads: 0 items were successfully imported.
I have two things to ask:
1) Why no items are successfully imported and
2) what is correct procedure to import data from .mat or .m file to sldd file
Attach here is the xlsx file which has all the names of the port
  3 件のコメント
Jonas
Jonas 2021 年 9 月 28 日
編集済み: Jonas 2021 年 9 月 28 日
I have to ask, these signal definitions, for things like 'In8', 'In10', 'Out5', 'Out6'. What are these? Are these signal definitions for the in- and outports of various subsystems in your model?
Why do you want to write all this meta data in an Excel file and then load it into your modeling structure?
Akshay Chandel
Akshay Chandel 2021 年 9 月 28 日
Yes they are signal definitions for in and out ports. I mentioned that I am learning MBD and I got the assignement in which we have been provided this file (xlsx) and asked to add the this signal names in sldd file.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by