Matrix manipulation with vectors

조회 수: 1 (최근 30일)
maya
maya 2013년 2월 25일
Hi,
I was wondering if there is a way that I can assign a part of a matrix to a vector. For example I have a 50x50 matrix and I want to assign the first column from the first element in that column to the 46th element to a vector(excluding the last 4 element).
Thank you in advance

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 25일
편집: Azzi Abdelmalek 2013년 2월 25일
A(1:46,1) % first column from 1 to 46

추가 답변 (1개)

Walter Roberson
Walter Roberson 2013년 2월 25일
vector = thematrix(1:end-4,1)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by