Persistent Data for Lookup Tables in Simulink

버전 1.3.0.0 (261 KB) 작성자: Jason Nicholson
How to speed up Simulink models that use large lookup tables.
다운로드 수: 155
업데이트 날짜: 2018/5/20

라이선스 보기

편집자 메모: This file was selected as MATLAB Central Pick of the Week

Loading large lookup tables in Simulink models can be the bottle neck for the simulation speed. This is more important when you cannot load a lookup table into the base workspace or model workspace when you build a Simulink library. When you don't know how the library will be used, loading data into the base or model workspace can cause problems and thus it is bad practice to do so. This set of files shows how to load a lookup table in the mask initialization of a subsystem block and then save it to UserData. On subsequent runs, the data stored in UserData is used for the lookup table. The speed up is 10-50x.

The methodology will work in very old versions of MATLAB. However, the Simulink files attached are 2018a.

인용 양식

Jason Nicholson (2024). Persistent Data for Lookup Tables in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/67163-persistent-data-for-lookup-tables-in-simulink), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

Added images for simulink models.

1.2.0.0

with persistence picture wasn't up to date.
typo correction
picture wasn't sized right.
Changed z value to non breakpoint value. This causes the more calculations to be done the if the z value is a breakpoint.
Remade pictures.

1.1.0.0

Forgot to attach the files on the last update

1.0.0.0

Added checking for a slice of the table data. This shortens the calculation time.
Fixed typos.
Reran analysis. Conclusions still the same.
switch to a published script because it looks better than the live script.
Editing the published HTML.
More edits of the HTML

Trying to get the HTML to render right.
adding a picture
HTML edit