How can I print names of files or folders contained in a specific folder in first (( COLUMN A ) in excel sheet?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ahmed obaid
le 22 Juil 2015
Commenté : ahmed obaid
le 22 Juil 2015
this code its modified by Shiran Golan with best thanks to him ,
% srcFolders = dir;
for folder = 1:length(srcFolders)
srcFolders(folder).fullname = strcat('D:\',srcFolders(folder).name);
end
xlswrite('xlsFile', {srcFolders(:).fullname}, 'xlsSheet','A1');
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 22 Juil 2015
for folder = 1:length(srcFolders)
data{folder,1} = fullfile('D:',srcFolders(folder).name);
end
xlswrite('xlsFile', data, 'xlsSheet','A1');
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!