Return ith calling argument.

pick(i, r_0, r_1, ...) returns r_i.
1,2K descargas
Actualizado 7 may 2009

Ver licencia

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);

Citar como

Phillip M. Feldman (2024). Return ith calling argument. (https://www.mathworks.com/matlabcentral/fileexchange/24030-return-ith-calling-argument), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2009a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Numeric Types en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0