No BSD License  

Highlights from
getp

5.0

5.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 1.69 KB File ID: #13259

getp

by squirrel squirrel

 

06 Dec 2006 (Updated 06 Dec 2006)

This script returns property-value pairs of a simulink model, block or line

| Watch this File

File Information
Description

The script GETP is a modified version of the command GET_PARAM. It returns property-value pairs of simulink models, blocks and lines.

Unlike GET_PARAM(SYS,'OBJECTPARAMETERS') the function GETP displays the property values.

Example:
>> getp('vdp')

       Name: vdp
        Tag: ''
Description: The van der Pol Equation
...

Acknowledgements
This submission has inspired the following:
getp for R2007b, allparams: Lists all parameters of a Simulink object and their values
Required Products Simulink
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
11 May 2007 Johannes Lauer

Exactly what I was looking for. Thank you.

03 Jun 2008 Thierry Dalon

A little bit complicated:
Same as:
get(get_param(varargin{1},'Handle'));

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink squirrel squirrel 22 Oct 2008 08:51:29
get_param properties values property value simulink change view squirrel squirrel 22 Oct 2008 08:51:29

Contact us at files@mathworks.com