Save Histogram data without figure
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Annagrazia Pedicini
am 7 Jun. 2018
Kommentiert: Rik
am 7 Jun. 2018
Hi, I want to save a histogram figure in a folder out of matlab but i do not want that the figure appears on matlab. How can i do this?
0 Kommentare
Akzeptierte Antwort
Rik
am 7 Jun. 2018
You can create a figure with the Visible property set to 'off'.
f=figure('Visible','off');
X=randi(15,1,100);
histogram(X,'Parent',f);
saveas(f,'test.png')
close(f)
4 Kommentare
Rik
am 7 Jun. 2018
I don't see any reason why that would fail. What is the complete code you're using? (please use the {}Code button to format your code)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects 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!