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!