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 CenterFile Exchange에서 2-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