Copy particular column from an array
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi I have an a matrix Y = [ 1 1 1 1 1; 2 3 4 5 6].
How do I copy just the first three values in column 2 into a new matrix
X = [2 3 4]
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2015년 7월 17일
편집: Azzi Abdelmalek
2015년 7월 17일
Y(1:3,2)
Read the documentation http://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!