allparams: Lists all parameters of a Simulink object and their values
by Malcolm Wood
15 Dec 2006
(Updated 19 Jan 2010)
Lists the parameters of a Simulink block, line, port or block diagram, and the value of each
|
Watch this File
|
| File Information |
| Description |
For a specified Simulink object (block, port, line, block diagram etc.), or for the current block if no object is specified, this function lists its parameters.
The parameters are sorted alphabetically by name, and the value of each is shown where possible.
It is considered "possible" to show the value where it is a numeric scalar or a single-line string of less than 100 characters. This covers the vast majority of Simulink parameters.
Otherwise, the data type of the value is shown, and the user can retrieve the actual value using get_param. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
getp
|
| MATLAB release |
MATLAB 7.3 (R2006b)
|
| Other requirements |
Should work on all platforms and with all versions of Simulink. Tested on Windows and Linux and with releases R14 through R2006b. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 15 Dec 2006 |
Steve Koffman
|
|
|
| 03 Jun 2008 |
Thierry Dalon
|
|
|
| Updates |
| 17 Dec 2009 |
Review |
| 19 Jan 2010 |
Added copyright line and eliminated various M-Lint warnings. As a minor side effect, this makes it incompatible with an release older than R14. |
|
Contact us at files@mathworks.com