How to augment a vector into another vector?
33 ビュー (過去 30 日間)
古いコメントを表示
Muhammad Sardar Khan
2015 年 4 月 14 日
編集済み: Azzi Abdelmalek
2015 年 4 月 14 日
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]
0 件のコメント
採用された回答
Azzi Abdelmalek
2015 年 4 月 14 日
v1 = [0 1 2 3],
v2 = [0 1 2]
[a,b]=ndgrid(v1,v2)
out=[a(:) b(:)]
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および 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!