How to plot with a logarithmic scale?

4 views (last 30 days)
I am wondering how to plot in MATLAB with a logarithmic scale. These are my data
x = [1 0.1 0.01 0.001]
y = [10 60 120 180]
I want to plot x-axis in logarithmic scale. Can anyone help me please to do this?

Accepted Answer

Ahmed A. Selman
Ahmed A. Selman on 24 Apr 2013
semilogx(x,y)

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!