Selecting random number from martrix

 Réponse acceptée

signal
signal le 9 Nov 2011
one way to do it is
row = randperm(10);
row = row(1:5);
result = your_matrix(row,:);

Plus de réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by