how to extract data after squeeze the matrix?
古いコメントを表示
i have 3D data that will be squeezed to 2D data matrix. the data is 116x150x45 where after the squeeze, i want to take out sample 1-25 only,
thus, Y should have 25 for Y(1) until Y(25), but i only got Y that will extract and replace after squeezing. anyone can help?
for a = 1:25
Y=squeeze(fmridata(:,:,a)); % for healthy patients from 1-25
end
3 件のコメント
Adam
2019 年 10 月 14 日
You would be far better off just taking
fmridata( :, :, 1:25 )
and working with it from there via indexing.
Muaaz Badrul
2019 年 10 月 14 日
Adam
2019 年 10 月 14 日
It will still be stored in 3d yes. But how it is stored in a variable doesn't really matter. It's what you do with it from there that matters.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!