Saving with filename from excel
古いコメントを表示
Hi
I getting text from excel cell A1. This value changes for different dataset.
Question: How to use it as a filename for saving image.
I am currently using saveas(gcf,'Test.jpg');
or saveas(gca, fullfile(folderName, 'Test'),'jpeg');
Thanks
7 件のコメント
TAB
2018 年 5 月 23 日
fname = xlsread('your_excel.xlsx', 'A1');
saveas(gcf, [fname '.jpg']);
Siva Ratnasingam
2018 年 5 月 23 日
Paolo
2018 年 5 月 23 日
Try
saveas(gcf,fname,'jpg')
Siva Ratnasingam
2018 年 5 月 23 日
Paolo
2018 年 5 月 23 日
Try
saveas(gcf,cell2mat(fname),'jpg')
Siva Ratnasingam
2018 年 5 月 23 日
Paolo
2018 年 5 月 23 日
You are welcome, I wrote an answer for the question so that other people can easily find the solution if they are facing the same problem.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!