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?
4 次查看(过去 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 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!