MATLAB Answers

How to plot with a logarithmic scale?

112 views (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?

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)


Translated by