Hi, I have a question regarding import of mat file into simulink inport. I have 5 inports that contain different data from the mat file. But I am currently stuck as I am not sure how I can segregate the specific data to specific inports. I tried to use the xlsread command then manually appoint it to the inports, but there is no results. I really appreciate if you would guide me through this.
Best Regards Rafhana

 채택된 답변

Ilham Hardy
Ilham Hardy 2015년 11월 25일

0 개 추천

It should be simple,
Usually the mat file contains variables (for the simulation). Just use constant block with for each input port labeled with the desired/specific variable name.
However i might misunderstood your question, why do you use xlsread?

댓글 수: 1

Rafhana Razli
Rafhana Razli 2015년 11월 28일
I might have misunderstood the use of xlsread previously but I get it now. So since I'm using the from file block, the information will be uploaded automatically to the inports right? However it seems like I have a problem where, I can't get any values in the division block.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

질문:

2015년 11월 25일

댓글:

2015년 11월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by