How can I convert a n*m matrix with its typical form to a linear form of 1*(n*m) one with comma between all elements and semicolon after each row is finished?
조회 수: 3 (최근 30일)
이전 댓글 표시
assume that i have a matrix A that
A= [1 2 3
4 5 6
7 8 9]
i want to reach matrix B in the way below:
B= [1,2,3;4,5,6;7,8,9]
so I want to know that is it possible in matlab by any function ?
댓글 수: 3
Jan
2022년 6월 12일
A= [1 2 3
4 5 6
7 8 9]
B= [1,2,3;4,5,6;7,8,9]
isequal(A, B)
So currently it is not clear, what you want to achieve and answering the question requires bold guessing.
답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!