Return ith calling argument.

pick(i, r_0, r_1, ...) returns r_i.
1.2K 次下载
更新时间 2009/5/7

查看许可证

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

引用格式

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

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Numeric Types 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0