Pulling Vectors From 3D Matrix Based on Indicies

1 回表示 (過去 30 日間)
Jordan David
Jordan David 2023 年 2 月 23 日
回答済み: KSSV 2023 年 2 月 23 日
I have a 10 page 3D matrix that I'm looking to pull vectors from specific indicies. For example i=13 and j=33. The end result from each sampling should be a column vector. What is the best way to accomplish this?

回答 (1 件)

KSSV
KSSV 2023 年 2 月 23 日
A = rand(30,40,10) ;
iwant = squeeze(A(13,33,:))
iwant = 10×1
0.8982 0.0251 0.4670 0.1923 0.6868 0.1095 0.7676 0.2573 0.3692 0.4472

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by