Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to acces matrix with some rows and columns

1 vue (au cours des 30 derniers jours)
Ayesha Maroof
Ayesha Maroof le 12 Juin 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have a large matrix and i want to access some rows and columns diagonally whose length varies at each iteration want to check sequence with in those rows and columns first and then have to check values outside those rows and columns but keeping track of main matrix as it is.
for example=A=[1 0 0 3 0 2;0 1 3 0 0 2;0 3 1 0 0 2;1 0 0 2 0 3;2 3 0 0 4 1;2 3 4 5 6 1;4 0 2 3 1 0]
i have to extract matrix like this,which are my cells
cell 1=[1 0;0 1]
cell 2=[1 0;0 2;0 0;4 5]
cell 3=[1 0]
all these are at diagonal now i want to check sequence of numbers with in these cells after that i want to acces the remaining part and check their sequnce in relation to numbers with in cells
[0 3 0 2]
[3 0 0 2]
[0 3 0 2] and so on
i hope someone gets what i really want to do.stuck in it since 2 weeks

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by