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.
Zitieren als
Peter O'Connor (2024). sig (https://www.mathworks.com/matlabcentral/fileexchange/35402-sig), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Programming > Functions > Argument Definitions >
- MATLAB > Programming > Classes > Construct and Work with Object Arrays >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.2.0.0 | now returns function signatures too. YOU GUYS, MATLAB, SHOULD ALREADY HAVE THIS! |
||
1.1.0.0 | works now on R2010 |
||
1.0.0.0 |