How to import excel file into my simulink model without communicating with workspace

1 view (last 30 days)
I will be very thankful, if there are any answers for this.

Accepted Answer

ES
ES on 8 Sep 2017
If u can store in a mat file, u can use From File block in your model. Alternatively u can use m-functions
But why do you want to avoid Workspace communication? Because its much easier to read the xls data, and use From Workspace block to achieve the same.
  1 Comment
swathi kumar sravanam
swathi kumar sravanam on 8 Sep 2017
Thank you J Smith,
yes it is the best practice to read the excel file from workspace. But I just like to know the other mode of possibilities to read the excel file and more over I would like to generate the code for my model. so just to avoid the scripting and from work space for the code compatibility sake.

Sign in to comment.

More Answers (0)

Categories

Find more on Data Import from MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!