Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

matlab - How to plot hist with log scale

x = [1: 1000]
hist(x)

then, there are figure showing the histogram, but if i set the axes property and Y-axis to log. I cannot see anything in the figure. How to plot the histogram with log scale.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try set(gca, 'Xscale', 'log') for plotting log on X axis. It worked for me I am using 7.12.0 or 2011a. Check the axis reference for more help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...