Return ith calling argument.

pick(i, r_0, r_1, ...) returns r_i.

現在この提出コンテンツをフォロー中です。

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 (2026). Return ith calling argument. (https://jp.mathworks.com/matlabcentral/fileexchange/24030-return-ith-calling-argument), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersNumeric Types についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0