Effacer les filtres
Effacer les filtres

Matrix manipulation with vectors

2 vues (au cours des 30 derniers jours)
maya
maya le 25 Fév 2013
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

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 25 Fév 2013
Modifié(e) : Azzi Abdelmalek le 25 Fév 2013
A(1:46,1) % first column from 1 to 46

Plus de réponses (1)

Walter Roberson
Walter Roberson le 25 Fév 2013
vector = thematrix(1:end-4,1)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by