Basic question regarding S function

조회 수: 2 (최근 30일)
Sameer
Sameer 2014년 6월 25일
답변: Titus Edelhofer 2014년 6월 25일
Hello all
I wrote a matlab level 2 S function,which in its ouput block calling the matlab function,now in that function some data is read from the xls sheets. Now at every simulation iteration the same data is being read again and again thus increasing the simulation time. Can anyone suggest me how can i use the data during my whole simulation and it should be read only once so that my simulation time can improve.
Please Guide
Regards

채택된 답변

Titus Edelhofer
Titus Edelhofer 2014년 6월 25일
Hi Sameer,
the easist would be to use a parameter for the S-Function, read the xls file in MATLAB and pass the data as parameter.
Alternatively, if you read from the Excel-File "only numbers", take a look at the doc for how to "store" data within an S-function.
Titus

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by