"Meshgrid" in more than 3 dimensions?
44 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(2 个)
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?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!