Matrix manipulation with vectors

2 次查看(过去 30 天)
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 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by