Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to specify which matrix i use

조회 수: 1 (최근 30일)
Christos
Christos 2012년 8월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
hello folks. i have a general programming question. I have a matrix lets say D. In regression its called the design matrix. I want to apply some functions in all possible submodels for regression. The design matrix for each of those sub models consists of a subset of columns of D. I used
C=arrayfun(@(x) D(:,logical(dec2bin(x,qq)-'0')), 1:2^qq-1, 'unif', 0);
C{:};.
This way i created a cell matrix C whith elements all possible combinations of columns taken from D. So, i want to apply some functions in each element(matrix) of C. My question is how can i know for each element of C which columns are used from D. i.e. i want a function or something that will tell me that C{1,3} contains the matrix that consists of columns 1 and 2 of D for example.
Thanks for your time.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by