Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Random range of plot?

1 回表示 (過去 30 日間)
SHARAD KUMAR UPADHYAY
SHARAD KUMAR UPADHYAY 2020 年 5 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
With respect,
Sir I need to plot this type of graph but I am not able to plot. I am only able to plot simple continuous data plot. Please help me about this.
  1 件のコメント
KSSV
KSSV 2020 年 5 月 8 日
Read about semilogx, semilogy.

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 5 月 8 日
Check this example
x = [1 15];
y1 = [20 1];
y2 = [19 0.95];
y3 = [18 0.9];
y4 = [7 0.4];
y5 = [6.6 0.38];
y6 = [6.2 0.36];
figure;
ax = axes();
hold(ax);
ax.XScale = 'log';
ax.YScale = 'log';
loglog(x, y1, 'k')
loglog(x, y2, 'b--')
loglog(x, y3, 'r-.')
loglog(x, y4, 'k')
loglog(x, y5, 'b--')
loglog(x, y6, 'r-.')
xlim([1 15]);
ylim([0.1 100]);
box(ax)
ax.TickDir = 'out';
ax.TickLength = [0.02 0.02];
ax.LineWidth = 0.8;

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by