How to augment a vector into another vector?
이전 댓글 표시
v1 = [0 1 2 3],
v2 = [0 1 2]
the resultant
v3 =[0 0;
1 0;
2 0;
3 0;
0 1;
1 1;
2 1;
3 1;
0 2;
1 2;
2 2;
3 2]
채택된 답변
추가 답변 (1개)
tdd4c1
2015년 4월 14일
v3 = [repmat(v1',3,1) reshape(repmat(v2,4,1),1,[])']
카테고리
도움말 센터 및 File Exchange에서 Pole and Zero Locations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!