I have n*n matrix.I want to get all the elements of 1st column of nth rows like A(:,1). Now how will i arrange all the n elements into a single row i,e b=[A(1,1) A(2,1) A(3,1)............ A(n,1)].What will be the command for n being large say 5000?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have n*n matrix.I want to get all the elements of 1st column of nth rows like A(:,1). Now how will i arrange all the n elements into a single row i,e b=[A(1,1) A(2,1) A(3,1)............ A(n,1)].What will be the command for n being large say 5000?
댓글 수: 0
채택된 답변
Stephen23
2018년 5월 14일
편집: Stephen23
2018년 5월 14일
A(:,1).'
댓글 수: 2
James Tursa
2018년 5월 14일
편집: James Tursa
2018년 5월 14일
If A is real, there is no difference in the result. If A is complex, then ' will conjugate the elements (i.e., negate the imaginary part), whereas .' will not conjugate the elements.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!