To create and pop open an excel file

10 ビュー (過去 30 日間)
KRUNAL
KRUNAL 2014 年 7 月 28 日
コメント済み: Image Analyst 2015 年 9 月 18 日
Right now I am able to do calculations of two excel file data and output its result to the 3rd excel file which is already existing. Now I want to do two things :
  1. It should create a new excel file and store the calculated result in it.
  2. After storing the result in the newly created file it should open that new file on the screen,showing the results.
Can anyone tell me what script should I add to my existing code to get this kind of result?

採用された回答

Image Analyst
Image Analyst 2014 年 7 月 28 日
You say you already have the 3rd workbook, so for #1, why can't you just use copyfile() to make another one?
For #2, use the system() command to launch Excel workbook
system('D:\Matlab\work\Camera Noise Comparison.xlsx')
  5 件のコメント
Image Analyst
Image Analyst 2015 年 9 月 18 日
Jamal's "Answer" moved here:
Dear Image Analyst,
Thanks for your method; I need it and works well for me. But my code produces about 120 input packages automatically and I need to create 120 excel files. I would prefer to give a specific name to each (e.g. ordinal numbers) , How can I automate this in xlswrite line please?
Many thanks, Jamal
Image Analyst
Image Analyst 2015 年 9 月 18 日

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

その他の回答 (2 件)

Joseph Cheng
Joseph Cheng 2014 年 7 月 28 日
the first one should be easy enough as you know how to read the first 2 excel files and you can write to the 3rd excel file. use the xlswrite but have an input name or generic name. the second one would be to use winopen() function to open the file in excel showing the results.
  2 件のコメント
KRUNAL
KRUNAL 2014 年 7 月 29 日
I did not get you. What kind of input name or generic name should I add?
Joseph Cheng
Joseph Cheng 2014 年 7 月 29 日
That is for you to decide.

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


KRUNAL
KRUNAL 2014 年 7 月 29 日
Ok I got. Thanks Joseph!

カテゴリ

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