채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 4월 14일

1 개 추천

v1 = [0 1 2 3],
v2 = [0 1 2]
[a,b]=ndgrid(v1,v2)
out=[a(:) b(:)]

추가 답변 (1개)

tdd4c1
tdd4c1 2015년 4월 14일

0 개 추천

v3 = [repmat(v1',3,1) reshape(repmat(v2,4,1),1,[])']

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by