フィルターのクリア

how do I create many excel file

3 ビュー (過去 30 日間)
MMSAAH
MMSAAH 2017 年 6 月 2 日
コメント済み: MMSAAH 2017 年 6 月 2 日
Hello, I have 100 MR images and I want to create excel file for each image containing some results of traitement...So I want to have 100 excel file finally !! I know that xlswrite create one excel sheet but If want 100 ?
Could any one help me !! I will be grateful !!

採用された回答

Stephen23
Stephen23 2017 年 6 月 2 日
How to read multiple files is explained extensively in the documentation, on this forum, and in the wiki:
etc
The first thing to decide is if you want to generate the file names, or if you want to read the names of existing files:
  • generate names: use sprintf and fullfile.
  • read names: use dir and fullfile.
You can also find some examples with my FEX submission natsortfiles:
  1 件のコメント
MMSAAH
MMSAAH 2017 年 6 月 2 日
This code did solve my problem
for k = 1:100
Filename = sprintf('matlab_%d.xls', k);
xlswrite(Filename, [% metric value])
end

サインインしてコメントする。

その他の回答 (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