how to arrange vector to matrix?
조회 수: 2 (최근 30일)
이전 댓글 표시
채택된 답변
추가 답변 (1개)
Sudharsana Iyengar
2021년 11월 6일
You can try using the functions perms. or if you want cyclic permutations
x=[1,2,3,4,5,6];
v=perms(x)
X=[1,2,3,4,5,6];
V=[X;circshift(X,1);circshift(X,2);circshift(X,3);circshift(X,4);circshift(X,5);]
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!