Construct a permutation matrix from two vectors
조회 수: 8 (최근 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:
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!