I have a large number of files that I need to create histograms, so I want to save them from the command line. For sites, I usually save them in Matlab using the following command:
figure = plot (x,y) saveas(figure, output, 'jpg')
I want to do the same for histograms:
figure = hist(x) saveas(figure, output, 'jpg')
However, I get an error message that specifies an invalid handle. I also tried the imwrite function, the code executes but retains a clear black image. Is there any way to save my histograms?
user1505100
source share