numel
fi
配列のデータ要素数
説明
例
2 次元 fi 配列の要素数
2 行 3 列の配列の fi
オブジェクトを作成します。
X = fi(ones(2,3),1,24,12)
X = 1 1 1 1 1 1 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 24 FractionLength: 12
numel
はこの行列の 6 個の要素をカウントします。
n = numel(X)
n = 6
多次元 fi 配列の要素数
2 x 3 x 4 配列の fi
オブジェクトを作成します。
X = fi(ones(2,3,4),1,24,12)
X = (:,:,1) = 1 1 1 1 1 1 (:,:,2) = 1 1 1 1 1 1 (:,:,3) = 1 1 1 1 1 1 (:,:,4) = 1 1 1 1 1 1 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 24 FractionLength: 12
numel
はこの行列の 24 個の要素をカウントします。
n = numel(X)
n = 24
入力引数
A
— 入力配列
スカラー | ベクトル | 行列 | 多次元配列
入力配列。スカラー、ベクトル、行列または fi
オブジェクトの多次元配列として指定します。
複素数のサポート: あり
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
バージョン履歴
R2013b で導入
参考
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)