I have a matrix say, A=
1 8 4 6
2 1 7 5
8 3 3 9 .
I need the elements in an array called B like B=[1 8 4 6 2 1 7 5 8 3 3 9].
Please help me.

댓글 수: 1

José-Luis
José-Luis 2013년 1월 16일
편집: José-Luis 2013년 1월 16일
Repeated question:
How did the answer you were given not solve your problem. Instead of asking a new question please explain what you actually want.
Please accept an answer if it helped you.

댓글을 달려면 로그인하십시오.

 채택된 답변

Thorsten
Thorsten 2013년 1월 16일
편집: Thorsten 2013년 1월 16일

10 개 추천

B = A';
B = B(:)';

댓글 수: 1

Berk Kucukoglu
Berk Kucukoglu 2022년 2월 18일
This worked for me, therefore I upvoted. Thank you.
However, I don't understand why it works. And is it always guaranteed to work between updates? Like, is this a bug or a feature? :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2013년 1월 16일

댓글:

2022년 2월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by