I have 4D array E1 = E(13,1,8:20,1:800), and would like to convert it into a 2D array. The E1 displays the output as: val(:, :, 1, 1) = .... val(:, :, 2, 1) =..... ...................... ...................... val(:, :, 13, 800)=..... Now, I would like to generate a 2D output with 1:800 in rows and 8:20 in columns.

댓글 수: 4

madhan ravi
madhan ravi 2018년 8월 21일
Can you show an example which is simple?
Walter Roberson
Walter Roberson 2018년 8월 21일
What is E(13,1,8:20,1:800) intended to convey ?
uvejb
uvejb 2018년 8월 21일
clarification: E is a 4D double type value with dimensions: [25x1x20x 800].
uvejb
uvejb 2018년 8월 21일
First dimension "25" indicates: There are 25 "x-position" values Second dimension "1" indicates: There is a single "y-position" value third dimension "20" indicates: There are 20 "z-position" values fourth dimension "800" indicates: 800 wavelengths.
I am interested in evaluating the output, for a fixed value of x and y, at varying z (from 8:20) and varying wavelengths (from 1:800)

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

 채택된 답변

Walter Roberson
Walter Roberson 2018년 8월 21일

2 개 추천

squeeze(E1)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Types에 대해 자세히 알아보기

질문:

2018년 8월 21일

댓글:

2018년 8월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by