Fast Parameter Loading for MATLAB/Simulink
by Robyn Jackey
07 May 2007
(Updated 01 Dec 2009)
A method for caching M-file parameters in MAT format, allowing for quick loading.
|
Watch this File
|
| File Information |
| Description |
M-files are the preferred method for defining parameters for a Simulink model, because it is a readable option. However, loading parameters from M-scripts takes longer to run than loading from a binary MAT-file. Loading parameters for large Simulink models can therefore take a significant time to run.
It is possible to combine the speed of saving parameters in MAT format with the versatility of entering parameters in M-script format. The M-script can be used as the ?master? copy of the parameters, and the parameters can be cached into a MAT-file when they are loaded. This functionality can be accomplished by using a function that compares the timestamp of an M-script and its cached MAT-file. Using this combination, the parameter loading time can be greatly improved any time in which the parameter M-script has not been changed. |
| Required Products |
Simulink
|
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 11 May 2007 |
Included long description in PDF document. |
| 07 Aug 2009 |
Updated copyright information |
| 01 Dec 2009 |
Updated copyright statement for BSD license. |
|
Contact us at files@mathworks.com