How can I copy and paste figures from Classification Learner?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bijan Abar
am 29 Jul. 2015
Kommentiert: Zulfidin Khodzhaev
am 16 Feb. 2019
I am trying to compile the Confusion Matrices and ROC curves created by the Classification Learner App for the different machine learning algorithms. However, I can not find an option to copy the figure and I would rather not take screen shots because of the bad quality of the picture.
0 Kommentare
Akzeptierte Antwort
Cam Salzberger
am 31 Jul. 2015
Hi Bijan,
I understand that you have the Classification Learner open and would like to get access to the figure window within it. The figure handle is not accessible by output from the "classificationLearner" function, nor through the "gcf" function. However, it is accessible through the "findall" function.
hFigs = findall(groot,'type','figure');
This will give you a handle to all the figure windows that are currently open. You can pick which tab of the Classification Learner to export by looking at the 'Name' property of each figure.
Once you have the handle to the figure you want, you can choose to save the figure to an image file, to a PDF, or just copy it to the clipboard. See the "print" function and "saveas" function documentation for more information on how to do that. Both "saveas" and "print" can output a file, but only "print" can copy the figure to the clipboard.
I hope this helps!
-Cam
1 Kommentar
Weitere Antworten (2)
José Adrián Zambrano Miranda
am 28 Feb. 2017
An example using print could be:
print(hFigs(1),'ROC','-depsc');%For eps figure with name: ROC
0 Kommentare
Zulfidin Khodzhaev
am 16 Feb. 2019
You can pick which tab of the Classification Learner to export by looking at the 'Name' property of each figure ??
My window looks like:

I tried "hFigs = findall(groot,'type','Predictions: model 1.10');" but no result ?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Classification Learner App finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!