フィルターのクリア

Taking one dimension of a matrix

23 ビュー (過去 30 日間)
Anwesh Saha
Anwesh Saha 2023 年 2 月 2 日
回答済み: Dyuman Joshi 2023 年 2 月 2 日
I have a 972X48X128 matrix double, and I want to save the first 2D matrix of the 3D matrix in another variable of dimension 1X48X128.
How do I accomplish this?

採用された回答

Dyuman Joshi
Dyuman Joshi 2023 年 2 月 2 日
in = rand(972,48,128);
out = in(1,:,:);
size(out)
ans = 1×3
1 48 128

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by