How to plot with a logarithmic scale?

1 view (last 30 days)
sese
sese on 24 Apr 2013
Edited: Ned Gulley on 14 Feb 2014
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!