필터 지우기
필터 지우기

How can I pass from 2D matrix to 3D matrix?

조회 수: 6 (최근 30일)
wolss
wolss 2019년 7월 4일
답변: Image Analyst 2019년 7월 4일
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

채택된 답변

KALYAN ACHARJYA
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
wolss
wolss 2019년 7월 4일
unfortuntely I don't know how represent in one of the third dimensions the frequency, because the number of waveform is supposed to be the x, the amplitude the y but the frequency.... is represented into the signal 2D but I don't know how to "export" it in 3D...
KALYAN ACHARJYA
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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
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.

카테고리

Help CenterFile Exchange에서 Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by