nargout_class

Version 1.0.0 (1,44 ko) par Hyeokjin Jho
nargout for methods, and inherited methods
17 téléchargements
Mise à jour 25 oct. 2018

Afficher la licence

nargout doesn't work for methods. Although some workaround was proposed(https://kr.mathworks.com/matlabcentral/answers/96617-how-can-i-use-nargin-nargout-to-determine-the-number-of-input-output-arguments-of-an-object-method), it does not work for inherited methods. This function extends nargout function to methods and inherited methods.

function nargout_class(C,M)

% input
% C : name of the class (char) or Object

% M : name of the method (char) or method handle (function_handle)

% output
% n : number of output argument of method M (double)

Citation pour cette source

Hyeokjin Jho (2024). nargout_class (https://www.mathworks.com/matlabcentral/fileexchange/69208-nargout_class), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2018b
Compatible avec les versions R2008b et ultérieures
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Handle Classes dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0