How to make a 4-D Matrix from 1-D Array?

조회 수: 3 (최근 30일)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA 2023년 5월 14일
댓글: Sai 2023년 5월 17일
I have a 1-D array (1*11). I need to make it a 4D matrix (11*11*11*11). The number of data (11) for each dimension are the same. For example, the 1-D array is A=0:1:10. This A needs to be turned into 4-D matrix. How can I do that? How to write the code for that?
  댓글 수: 3
Rik
Rik 2023년 5월 15일
The question is much too light on details to conclude this, but I suspect the final answer will include a call to meshgrid or ndgrid. All depends on what OP actually wants to happen.

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

답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by