Write the selection of a loop in excel
Afficher commentaires plus anciens
Hello, I'm doing some tests with an excel table (4 columns and 12 rows), I need the loop to return all the rows in which a certain statement in column D is true.
I can only write in a new table the column D where I do the cycle, all other information in the table does not appear. I need them to show up.
CODE:
classe=xlsread('NumData.xlsx',1,'D:D'); %coord_h=xlsread('NumData.xlsx',1,'col_total')
xlRange1='D2'; xlRange3='A2';
n=1000; headers_1={'Easting', 'Norting', 'Altura', 'Classe'}; xlswrite('NumData_final.xlsx',[headers_1])
for i=2:classe data=classe(classe==n);
xlswrite('NumData_final.xlsx',data,sheet,xlRange1);
return
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!