How to plot with a logarithmic scale?

3 visualizzazioni (ultimi 30 giorni)
sese
sese il 24 Apr 2013
Modificato: Ned Gulley il 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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by