Nchoosek with columns in a Dataset ?

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.

 채택된 답변

Simon
Simon 2013년 7월 3일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

질문:

2013년 7월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by