Extract data from the GUI figure data and store in excel
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am not able to build a function to extract data from the GUI result figure to excel/csv table:
- I get the box plot figure based on the code below. The results are for Monte Carlo.
I checked some older videos and documentation that is using object and handle, but I could not adapt that approach to this case. If anyone has a simple example how to do it I would appreciate very much. I also attached the figure that I am trying to export the data. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/235380/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/235380/image.jpeg)
This is the function that I used to plot my results.
function plotResults(app)
%Plots results based on current impact type and plot type selected in GUI
runNum = find(contains(app.ResultsRunListBox.Items, app.ResultsRunListBox.Value)); %Index of selected run in list
if isempty(app.Building.RunHistory)
msgbox('No results to plot. Please run model and try again. Also check to be sure results are being saved in app.Building.RunHistory.')
return
end
1 comentario
Adam Danz
el 27 de Ag. de 2019
A boxplot shows the summary of the raw data. There is no way to extract the raw data from the boxplot figure. Here's a brief discussion on that issue.
If the GUI produces the figure, then you don't need to extract data from the figure anyway. Get the data from whatever function is creating the plot in the first place.
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!