need urgent help please anybody modify my simple code

1 回表示 (過去 30 日間)
Nazish khan
Nazish khan 2016 年 3 月 2 日
回答済み: Torsten 2016 年 3 月 2 日
hi everyone i want axis adjustment with respect to scaling . i want exact points at 0.1 0.2 0.3 0.4 0.5 0n X axis and 0 1 2 3 4 on Y axis but my figure show 0 0.5 1 1.5 2 2.5 3 3.5 4 and 0.1 0.15 0.2 0.25 0.3 0.35 0.45 0.5.Please help me to adjust it please .my code and output is in figure i want to learn can anyone re modify my code according to my requirement please my math teacher want assignment please help me by modifying my code please

回答 (2 件)

Ingrid
Ingrid 2016 年 3 月 2 日
please have a look at
doc plot
more specifically check the Examples and How To section where it is explained that you can achieve this behaviour by using
set(gca,'XTick',yourDesiredTicks)
set(gca,'YTick',yourDesiredTicks)

Torsten
Torsten 2016 年 3 月 2 日

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by