Hi, How can I make the axis look like in the attached figures?

1 回表示 (過去 30 日間)
Hang Zeng
Hang Zeng 2021 年 6 月 19 日
回答済み: SALAH ALRABEEI 2021 年 6 月 20 日

採用された回答

SALAH ALRABEEI
SALAH ALRABEEI 2021 年 6 月 20 日
See this example
x = linspace(-5,5); y = x.^2; plot(x,y)
xticks([-5 -2.5 -1 0 0.25 0.5 0.75 1 2.5 10])
text(0,15,'$\frac{5\%}{20 s}$','interpreter','latex')

その他の回答 (1 件)

Jonas
Jonas 2021 年 6 月 19 日
what do you mean exactly? if you mean the logarithmic x axis then you can use semilogx() function for plotting

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by