How do i turn my 4D matrix into a 3D matrix
15 ビュー (過去 30 日間)
古いコメントを表示
I have a 4D matrix which has the dimensions latitude = 360, longitude = 720, time = 27, N = 5. How can I delete the dimension called N and turn the matrix into a 3D matrix?
0 件のコメント
回答 (1 件)
SALAH ALRABEEI
2021 年 6 月 6 日
I think you cannot convert 4D matrix into 3D if non of the dimensions is equal one.
If A is of size (100×50×1×20) lon, lat, depth and time. Then you can use this
to remove the fourth dimension
%
squeeze(A)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!