MATLAB Answers

Single line plot with fixed axis

34 ビュー (過去 30 日間)
Harr
Harr 2021 年 2 月 24 日
コメント済み: Harr 2021 年 3 月 17 日
Dear Matlab helper,
I wonder if there is any easy way to make the following plot with matlab? It is na line plot with fixed x and y axis. x axis need to be scientific and logarithmic scale. The line has intervals as well (Y1 and Y2). I was trying with fixing the axis scales but not anywhere close to make it ^_^; Please see the attached figure to see what i wanted to make!
For axis scale i used the following code but it is as i mentioned far from the figure.
x=0.00000008:0.00000001:0.00000003;
y=0:50:300
bar(0.00000045, 200)

採用された回答

Rik
Rik 2021 年 2 月 24 日
Every axes object has an XScale property you can set to 'log' to get the desired plot. You can use the normal plotting tools (e.g. plot and errorbar) after or before setting that. You can simply use
set(gca,'XScale','log')
  6 件のコメント
Harr
Harr 2021 年 3 月 17 日
Hi Rik,
I am using 2018b.

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

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by