Return ith calling argument.

pick(i, r_0, r_1, ...) returns r_i.
1,2K téléchargements
Mise à jour 7 mai 2009

Afficher la licence

pick(i, r_0, r_1, ...) returns r_i. Thus, if i==0, pick() returns the
second calling argument (r_0); if i==1, pick() returns the third calling argument (r_1); and so on. If there is no argument corresponding to i, pick() returns an empty matrix. If pick() is called with fewer than two calling arguments, pick() throws an error.

For example, the following returns z= x if flag equals 0 or false and z= y if flag equals 1 or true:

z= pick(flag, x, y);

Citation pour cette source

Phillip M. Feldman (2026). Return ith calling argument. (https://fr.mathworks.com/matlabcentral/fileexchange/24030-return-ith-calling-argument), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2009a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Numeric Types dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0