Filter löschen
Filter löschen

how to plot x axis equal spaced ?

2 Ansichten (letzte 30 Tage)
Jin
Jin am 9 Feb. 2012
Kommentiert: Shahmeer Baweja am 5 Dez. 2021
given x=[0.1,1,10,100], the corresponding y=[1,2,3,4,5] how to make the x-y plot x axis equal spaced? Thanks

Antworten (1)

Wayne King
Wayne King am 10 Feb. 2012
Since this sounds very much like a homework problem, I don't want to simply show the code, but look at your x-vector
x = [0.1 1 10 100];
what do all those numbers have in common? What do you have to raise 10 to get the first element, the second, etc.
  1 Kommentar
Shahmeer Baweja
Shahmeer Baweja am 5 Dez. 2021
Powers of ten. Now, can we know the code?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by