Saving a file made in matlab app designer
31 ビュー (過去 30 日間)
古いコメントを表示
Hello, I made a matlab app where you import an image and it converts that image into an excel file. When I run the app it saves the excel files to my matlab directory. Though, I want to add a button that when clicked asks where you'd like to save the excel file and saves the excel files there. How would I accomplish this. I attatched an image of the data where it asks for the image file and converts it when the button is clicked.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/755814/image.jpeg)
0 件のコメント
回答 (1 件)
Chetan Bhavsar
2021 年 10 月 1 日
% Button pushed function: Button
function ButtonPushed(app, event)
% get directory
selectedPath = uigetdir('C:\','Please select Path for saving excel file');
%write xlsx
writematrix('Dummydata',fullfile(selectedPath,'Standard.xlsx'))
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!