what are steps to create a combination array ?
Afficher commentaires plus anciens
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
1 commentaire
mohammad
le 20 Fév 2014
Réponses (2)
Ilham Hardy
le 20 Fév 2014
doc xlsread
doc xlswrite
to combine array
C = [A B]; or C = [A,B];
1 commentaire
mohammad
le 21 Fév 2014
Andrei Bobrov
le 21 Fév 2014
Modifié(e) : Andrei Bobrov
le 21 Fév 2014
[~,~,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);
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!