Creating vector from a matrix
显示 更早的评论
I want to create a column vector from every second element of the matrix
how can I do it?
回答(1 个)
A = randn(3:4)
v = A(1:2:end)'
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!