Code covered by the BSD License  

Highlights from
allparams: Lists all parameters of a Simulink object and their values

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.83 KB File ID: #13403

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

You could also use inspect(gcbh).

03 Jun 2008 Thierry Dalon

You could also use
 get(gcbh)

Please login to add a comment or rating.
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.

Tag Activity for this File
Tag Applied By Date/Time
simulink Malcolm Wood 22 Oct 2008 08:52:50
simulink get_param port line block block_diagram Malcolm Wood 22 Oct 2008 08:52:50

Contact us at files@mathworks.com