Axes

5 Ansichten (letzte 30 Tage)
Resthia Monti
Resthia Monti am 28 Jul. 2011
I want to make a plot into an axes. then I don't know how to make a X name as a years and Y as a data. in the property I was make in XTickLabel, XLim.. But It's doesn't work. I use a Matlab R2008a
Cheers

Antworten (1)

Walter Roberson
Walter Roberson am 28 Jul. 2011
You might want to use datetick(), or you might want to set() the XTick and XTickLabel properties
set(gca, 'XTick', [1 2 3 4 5], 'XTickLabel', {'1990','1994','1998','2002','2006'})

Kategorien

Mehr zu Axes Appearance 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