Effacer les filtres
Effacer les filtres

index to matrix columns

1 vue (au cours des 30 derniers jours)
laplace laplace
laplace laplace le 20 Juin 2013
i want put indices to matrix columns. eg
i got 1 2 3 3 4 5 6 7 8
i want to assign indices to the column vectors [1:3:6] etc
and is there a way to put random indices? the way crossvalind command does? the problem with crossvalind is that it only accepts arrays not column vectors
any ideas?

Réponses (1)

the cyclist
the cyclist le 20 Juin 2013
I think you can do what you want using the randsample() command.
doc randsample
for details.

Catégories

En savoir plus sur Structures 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