"Meshgrid" in more than 3 dimensions?

조회 수: 44 (최근 30일)
MRC
MRC 2013년 12월 5일
댓글: MRC 2013년 12월 6일
Hi, I have the following vectors
A= [1;2;3;4;5;6];
B= [1;2;3;4;5;6];
C= [1;2;3;6;7;8];
D= [-1;0;9;8;2;3;5];
E= (0:0.1:10)';
F= (0:0.1:10)';
G= (-1:0.1:1)';
and I want to create a matrix listing in each row 1x7 a possible combination of elements from the vectors above.

답변 (2개)

Kelly Kearney
Kelly Kearney 2013년 12월 5일
doc ndgrid
But that's going to be a huge matrix (323902152 elements, ~2.4GB double array); are you sure you want to store that?

sixwwwwww
sixwwwwww 2013년 12월 5일
ndgrid is useful for you. See following link for more information:
  댓글 수: 1
MRC
MRC 2013년 12월 6일
Thanks, but then how can I store everything in a matrix reporting in each row a combination of values?

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

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by