フィルターのクリア

How can I print names of files or folders contained in a specific folder in first (( COLUMN A ) in excel sheet?

1 回表示 (過去 30 日間)
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');

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 7 月 22 日
for folder = 1:length(srcFolders)
data{folder,1} = fullfile('D:',srcFolders(folder).name);
end
xlswrite('xlsFile', data, 'xlsSheet','A1');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by