Extract data from the GUI figure data and store in excel

2 次查看(过去 30 天)
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 个评论
Adam Danz
Adam Danz 2019-8-27
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.

请先登录,再进行评论。

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by