Save Histogram data without figure
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Rik
2018-6-7
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 个评论
Rik
2018-6-7
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)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!