Be the first to rate this file! 5 Downloads (last 30 days) File Size: 3.25 KB File ID: #35402

sig

by Peter O'Connor

 

01 Mar 2012 (Updated 02 May 2012)

method signatures for OOP

| Watch this File

File Information
Description

Returns the signature (info on inputs, outputs) of a function, or a method/property of an object. This is helful when doing object-oriented programming, as it seems that Matlab has no default functionality for doing this in OOP.

Examples:

sig handle.fi % returns info on all methods of handle class starting
                  % with fi.

x=sym('x'); % Create a symbolic object (from symbolic math toolbox)
sig x.ez % Get info on all methods starting with "ez"
sig x % Return the (large) list of all properties and methods
                  % associated with the "sym" class.

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File  
Everyone's Tags
autocomplete, class, object, oop, signature
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
15 Mar 2012

works now on R2010

02 May 2012

now returns function signatures too. YOU GUYS, MATLAB, SHOULD ALREADY HAVE THIS!

Contact us