How do I program my app to export a file to Windows File Explorer?
Afficher commentaires plus anciens
I am currently designing an app using Matlab's App Designer that processes audio and my query is very simple: I want to program a button so that when it gets pushed a Windows File Explorer (or Finder in OS) window shows up and I can save my file with a specified name and location as I would normally proceed in any other standard program.
I already know of '[file,path]= uiputfile({'*.*'});' but it doesn't create any file when I save it..
I have to join it with this line of code 'audiowrite(filename,app.audio,app.fs);' but I'm not sure how to!
Please help guys! Thanks in advance!
Réponses (1)
[file, folder] = uiputfile('*.wav');
if ~isequal(file, 0) % User did not press Cancel:
audiowrite(fullfile(folder, file), app.audio, app.fs);
end
Catégories
En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!