Clear Filters
Clear Filters

Extract data from the GUI figure data and store in excel

2 views (last 30 days)
I am not able to build a function to extract data from the GUI result figure to excel/csv table:
  1. 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.
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 Comment
Adam Danz
Adam Danz on 27 Aug 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.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!