How do I set the range of on axis, as well as making it logrythmic scale without taking logs of the results please?

3 ビュー (過去 30 日間)
My graph needs an edited axis, but I can't get it to work; my plot (simplified) is just plot(x,y) thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 14 日
set(gca,'xscal','log')
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 14 日
t=0:0.1:12
y=sin(t)
plot(t,y)
xlim([0.01 10])
set(gca,'xscale','log')
Jamie Shelley
Jamie Shelley 2016 年 7 月 14 日
thanks! I just realised the range was already okay, it was me being a melon and not clicking that 10^-2 was 0.01 haha. Thanks!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by