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!