Construct a permutation matrix from two vectors
22 次查看(过去 30 天)
显示 更早的评论
Hi,
If I have two vectors:
a = [1 ; 2 ; 3];
b = [4 ; 5 ; 6];
How can I constrcut a matrix that has the shape of:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1334400/image.png)
Thanks.
0 个评论
采纳的回答
更多回答(1 个)
Bruno Luong
2023-3-23
编辑:Bruno Luong
2023-3-23
combinations, new stock function in R2023a
a = [1 ; 2 ; 3];
b = [4 ; 5 ; 6];
combinations(a,b)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!