How can I save CSV files directly from App Designer to my hard drive?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mathijs Dijsselhof
el 16 de Mzo. de 2018
Comentada: Mathijs Dijsselhof
el 16 de Mzo. de 2018
My app creates matrices that I want to save to the file directory on my local hard drive, however I seem unable to use csvrwite to create and save CSV files when using App Designer. How can I save CSV files directly from App Designer to my hard drive?
0 comentarios
Respuesta aceptada
Birdman
el 16 de Mzo. de 2018
Well, you can create a button callback, where you can write a simple code. See the code below:
A = [12.7 5.02 -98 63.9 0 -.2 56];
[file,path] = uiputfile('*.xlsx');
filename = fullfile(path,file);
csvwrite(filename,A);
It actually gives an answer directly to your question. The thing that will change is that your A matrix will come from your app. Try to adapt this code into your app and let me know the results.
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!