Hello, I am trying to plot a set of data with specific axis values in order to show to the results clearly.
Using xtick and ytick command didnt give the desired effect, the values I specified weren't evenly spaced.
What I need is similar to the picture below, with the following data.
Re = [10 50 100 200 500]
Rmin =[0.009 0.01 0.014 0.023 0.029]
Please help!!
Annotation 2019-06-20 155918.png

댓글 수: 3

If you're trying use log axes,
Re = [10 50 100 200 500];
Rmin =[0.009 0.01 0.014 0.023 0.029];
plot(Re,Rmin);
set(gca, 'XScale', 'log', 'YScale','log')
% or
loglog(Re,Rmin)
Thanks this solved it
Great! I'll copy the comment to the answer section so the question is marked as resolved.

댓글을 달려면 로그인하십시오.

 채택된 답변

Adam Danz
Adam Danz 2019년 6월 20일
To plot with log axes
Re = [10 50 100 200 500];
Rmin =[0.009 0.01 0.014 0.023 0.029];
plot(Re,Rmin);
set(gca, 'XScale', 'log', 'YScale','log')
% or
loglog(Re,Rmin)

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2019년 6월 20일

답변:

2019년 6월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by