Importing excel spreadsheet into Simulink (configuration parameters pane)
이전 댓글 표시
Hi
I have a question regarding importing data from excel spreadsheet into the Simulink inport. I have 1 sheet with 54 column, the first column corresponds time and the rest are time dependent parameters. As I found out, first I should convert the excel file into the mat file and then import it from configuration parameters>> Data import/export. The problem is that I don't see any place called edit data as I see in other versions, (I am using a rather old version of Simulink). I attached a print screen of that page from both versions. I really appreciate if you would give me a hint regarding that.


Best Regards, Elham
답변 (2개)
Sean de Wolski
2013년 12월 18일
0 개 추천
Could you just import it into MATLAB (completely outside of Simulink) using the Import tool or importdata or xlsread and then write it to a MAT file from there?
댓글 수: 4
Elham
2013년 12월 18일
Sean de Wolski
2013년 12월 18일
I think you need to use one of the model callbacks to load the MAT file into the workspace. Then you can refer to the variables in the above image where you have the mat file name since these variables will live in the workspace.
Elham
2013년 12월 18일
Sean de Wolski
2013년 12월 18일
In the model properties -> callbacks, run:
load mydata.mat;

And then put the variable name that's inside of mydata.mat where you have the input now.
Elham
2013년 12월 19일
0 개 추천
댓글 수: 2
Elham
2013년 12월 20일
Tejendra Shrestha
2018년 1월 4일
Gr8 that you solved. I've similar situation but cannot achieve it. i've 3 input for fuzzy logic controller; listening, oral_communication, written_comunication. I have made 3 columns in excel and have a single sample row. how do i input the three columns data into 3 respective inputs in simulink. Plz help me...
카테고리
도움말 센터 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


