How to export data and plot from app designer to excel?
70 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kavinprasad M
el 22 de Ag. de 2022
Comentada: Kavinprasad M
el 22 de Ag. de 2022
I have created a plot using a table and used slider to smooth the graph, i don't know how to obtain the smoothed value table and the smoothed plot to excel in Matlab app designer
0 comentarios
Respuesta aceptada
Kevin Holly
el 22 de Ag. de 2022
Please see the app attached. You can use writetable to save your data to an Excel file. You can use xlswritefig found on the File Exchange to save the figure to an Excel file.
4 comentarios
Kevin Holly
el 22 de Ag. de 2022
Download the funciton from the File Exchange here:
Here are changes I would make to your app:
function ExportButtonPushed(app, event)
% app.Result = 'result.xlsx';
[filename, folder] = uiputfile("result.xlsx");
% writetable(app.stf,app.Result)
writetable(app.stf,fullfile(folder,filename))
% exportgraphics(app.UIAxes2,'result.pdf')
xlswritefig(app.UIAxes2,fullfile(folder,filename))
end
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!