what are steps to create a combination array ?
조회 수: 1 (최근 30일)
이전 댓글 표시
what are steps to create a combination array which are given through imported excel sheet then exporting the results to anther excel sheet ? note:the elements of the table are numbers
답변 (2개)
Andrei Bobrov
2014년 2월 21일
편집: Andrei Bobrov
2014년 2월 21일
[~,~,c] = xlsread('E:\xlsfile1.xlsx');
c1 = c(3:end,:);
ii = cellfun(@(x)all(~isnan(x)),c1);
n = sum(ii);
idx = bsxfun(@plus,fliplr(fullfact(n)),[0 cumsum(n(1:end-1))]);
c2 = c1(ii);
out = c2(idx);
xlswrite('E:\newxlsfile.xlsx',out);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!