Simulink Table-Type Data Import

Hello,
I have a dataset which is in table format. It is in my workspace, how can i import it to Simulink? I tried Constant and From Workspace blocks.
Also tried converting it to arrays and structs but there is also problem in importing these types.
Any help is very appericiated!
Best Regards

답변 (1개)

Nikhil
Nikhil 2023년 6월 27일

0 개 추천

Hey Matin,
I think From File block can read the data from MAT file into a Simulink Model.
Hope this works for you.

댓글 수: 3

Matin
Matin 2023년 6월 27일
Hello,
Dear Nikhil,
I tried it but i get this error:
  • Simulink does not support loading the input data in the variable 'data' in file 'C:\Users\tjafama\Desktop\data.mat'. The From File block can only load MATLAB timeseries objects, structures of MATLAB timeseries objects, or two-dimensional arrays consisting of one-dimensional, double, non-complex samples.
What should I do?
Nikhil
Nikhil 2023년 6월 27일
What type of data you want to import?
Matin
Matin 2023년 6월 27일
편집: Matin 2023년 6월 27일
Table.
It is weird but i think simulink does not support Table data type. Am I right?
Here is the link:
and also when i write this command in command window:
showblockdatatypetable
Thanks

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

릴리스

R2022b

질문:

2023년 6월 26일

편집:

2023년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by