Matrix manipulation with vectors

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 日

0 投票

A(1:46,1) % first column from 1 to 46

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 2 月 25 日

0 投票

vector = thematrix(1:end-4,1)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by