Try this:
bar(1:10) %whatever your figure is
print('BarPlot','-dpng')
There are other options here:
http://www.mathworks.com/help/matlab/ref/print.html
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!