edit-selecting random values
Mostra commenti meno recenti
I have a 10x10 matrix,i need 3 x10 ,but the corresponging column values must not change
if u r selecting any elememt from ist row that corresponging column values must not change
Risposta accettata
Più risposte (1)
Walter Roberson
il 13 Gen 2012
It looks to me as if the answer should just be
p = randperm(size(A,1));
out = A(p(1:3),:);
1 Commento
kash
il 13 Gen 2012
Categorie
Scopri di più su Sparse Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!