isfun: a pedestrian matlab construct determiner
res = isfun(arg1,arg2,'-opt',...,argN,'-opt')
determines the definition of ML constructs arg1 ... argN and
returns result-code(s)
in <res>
res.f(x) = arg(x)
res.r(x) = code(x)
SEE
help isfun
for more exhaustive explanations of precedence, return-codes and options
isfun -h
for examples
EXAMPLES
r=rand(1,2,3,4);
e=isfun(r,'r',1:5,'inline',@inline,'sin','sin.m',@sin);
% + double <r> (1,2,3,4) / 192 bytes
% + variable <r> [ var <r>]
% - double <r> (1,2,3,4) / 192 bytes [-: type of <r>]
% + double <*> (1,10) / 80 bytes [*: unnamed]
% + function [ 1/ -1] <MLROOT\toolbox\matlab\funfun\@inline\inline.m>
% + function handle <@inline>
% - function [ 1/ -1] <MLROOT\toolbox\matlab\funfun\@inline\inline.m>
% + built-in function <sin>
% + script <MLROOT\toolbox\matlab\elfun\sin.m>
% + function handle <@sin>
% - built-in function <sin>
Citation pour cette source
us (2024). isfun: a pedestrian matlab construct determiner (https://www.mathworks.com/matlabcentral/fileexchange/3009-isfun-a-pedestrian-matlab-construct-determiner), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Programming > Functions > Function Creation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 | extended help again |