get vector from a matrix ith row or column based on given dimension
6 次查看(过去 30 天)
显示 更早的评论
Hi,
I have very simple question but couldn't find a simple answer to it:
how can i get ith row or column of a matrix acc.to given dimension value. I mean, i need such a function:
v=getroworcolumnvector(Amatrix,i,dim);
for Amatrix is 2 dimensional array, it should give a vector which is ith row of Amatrix if dim==1, or ith column of Amatrix if dim==2
Thank you,
Baris
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 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!