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!