Help with inverse plot on x axis

I need to control the layout of the x axis such that it reads non evenly spaced ticks for inverted temperature.
I have an temperature array of 298 to 3250 I inverted the array and reversed the direction of the axis.
I want to label the x axis the following way
1/298 1/667 1/1036 1/1405 ... 1/3250
Is there a good way do to this other than manually change the x axis labels?
Thank you,
M

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 6 日
編集済み: Azzi Abdelmalek 2012 年 10 月 6 日

0 投票

set(gca,'xdir','reverse','xtick',fliplr([1/298 1/667 1/1036 1/1405 1/3250]))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by