Effacer les filtres
Effacer les filtres

Nchoosek with columns in a Dataset ?

1 vue (au cours des 30 derniers jours)
Simon
Simon le 3 Juil 2013
Is it possible to do a nchoosek function with all columns in a dataset? After a Data import I have all my variables in columns and I wondered if I could do something like nchoosek(all columns of my dataset,4) and then retrieve all combinations of 4 columns of that dataset. Thanks in advance! Sincerely,
a noob.

Réponse acceptée

Simon
Simon le 3 Juil 2013
Found it thank you! I did :
%
for i= 1:24
A{1,i} = x(:,i);
end
B = nchoosek(A,4)
end

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by