How to save a histogram generated with imhist() function as a png image?
조회 수: 6 (최근 30일)
이전 댓글 표시
when I save the image using imwrite() function it does not saves the axis only few spikes are saved. the code is given below.
=>> imwrite(imhist(temp),'F:\Histogram\h1.png');
댓글 수: 0
답변 (1개)
the cyclist
2018년 5월 30일
편집: the cyclist
2018년 5월 30일
댓글 수: 2
the cyclist
2018년 5월 31일
편집: the cyclist
2018년 5월 31일
for nf=1:6
figure
histogram(randn(100,1))
filename = sprintf('histogram_file_%d',nf);
print('-dpng',filename)
end
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!