フィルターのクリア

How do i change the axis limits of a plot without modifying the graph?..Please help

8 ビュー (過去 30 日間)
Kartik
Kartik 2014 年 2 月 25 日
コメント済み: Kartik 2014 年 2 月 27 日
At the start of a training program in MATLAB I normalized the inputs and targets and performed some operations on them.
Now i am successful in attaining the correct graph between input and output.
But now when i want the x-axis to display the original target value on the x-axis i use the xlim function to set the x-axis limits.. But now the graph changes according to the original target values.
I just want to change the values on x-axis without modifying the graph. Is it possible in some way.
graph obtained before(using normalized values):-
after i change x-axis values(as it is a training program ignore change in values on y-axis):-

採用された回答

Iain
Iain 2014 年 2 月 25 日
2 ways:
1. Change the scaling of the graph
eg. axis([0 1 2 3]) - change the numbers as needed.
2. Change the labels on the graph
set(axis_handle,'XTick',[0 1],'XTickLabel',{'45' 'second'})
  1 件のコメント
Kartik
Kartik 2014 年 2 月 27 日
I got the answer.. I modified ur answer as follows for my version
set(gca,'XTickLabel',{0,100,200,300,400,500,600,700,800,900,1000});
Thanks a lot!!:-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by