Exporting the plot in regression learner

3 visualizaciones (últimos 30 días)
Balantrapu Sai harshit
Balantrapu Sai harshit el 14 de Ag. de 2020
Comentada: Adam Danz el 5 de Sept. de 2024
How to download the plots that we got in regression learner app after training our model in versionR2018a. Please help me with this answer fastly.
  2 comentarios
Balantrapu Sai harshit
Balantrapu Sai harshit el 17 de Ag. de 2020
Thanks I got it
Adam Danz
Adam Danz el 17 de Ag. de 2020
Glad I could help!

Iniciar sesión para comentar.

Respuesta aceptada

Adam Danz
Adam Danz el 14 de Ag. de 2020
Editada: Adam Danz el 5 de Sept. de 2024
Doc page for exporting plots in Regression Learner app:
Option 1
Export the figure from the Regression Learner App (red box below).
Option 2
Export the axes programmatically (tested in r2019b).
% Get the handle to the Regression Learner App
RLapp = findall(0,'Type','Figure','tag','MLearnAppTraceFigure');
% Get the handle to the axes with the data
RLax = findall(RLapp, 'Type', 'Axes','Tag', 'MLearnAppTraceAxes');
% Create a new figure
newfig = figure();
% Copy the app axes to the new figure
newAxes = copyobj(RLax,newfig);
  2 comentarios
Ahmed Eltantawi
Ahmed Eltantawi el 2 de Sept. de 2024
Movida: Adam Danz el 5 de Sept. de 2024
@Adam Danz, Please How to extract data for X and Y in Regression Learner App?. I am using MATLAB R2022b.
Adam Danz
Adam Danz el 5 de Sept. de 2024
@Ahmed Eltantawi, I'm not sure which data you are referring to. How did the app access the data in the first place? Didn't you provide it? If you are referring to data in the exported figure, you can access it by looking in to the figure's children.
Example after exporting the figure from the app into an independent figure:
fig = gcf();
ax = gca(fig);
axesChildren = ax.Children
axesChildren may be a line object in which case the X and Y data are stored in,
axesChildren.XData
axesChildren.YData

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by