How can I pass from 2D matrix to 3D matrix?
6 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I'm trying to pass to a 3D matrix having a 2D matrix of this type: signal 1024x512. Each row is a signal obtained by a Radar measurement lasting 14.2 of a subject that breaths and is then transformed in frequency domain with an amplitude (columns).
My 3D matrix should have as three dimensions: waveform number, amplitude, frequency.
I don't know how to put togheter these 3 parameters...
Thank you
Regards
0 件のコメント
採用された回答
KALYAN ACHARJYA
2019 年 7 月 4 日
Pass the 2D matrix to 3D as plane (2D insert to 3D), you can do that using Multidimentional Arrays.
Is this your are looking for?
2 件のコメント
KALYAN ACHARJYA
2019 年 7 月 4 日
x,y, z..see the following figure, you can figure out the 3D array representation, all individual planes work as 2D array.
![nddemo_02.gif](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227582/nddemo_02.gif)
その他の回答 (1 件)
Image Analyst
2019 年 7 月 4 日
Maybe
array3D = array2D; % (only do for the first 2D matrix);
array3D = cat(3, array3D, array2D); % Append array2D onto existing 3D matrix.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Waveform Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!