How to save a histogram generated with imhist() function as a png image?
2 次查看(过去 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!