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 件のコメント

Adam Danz
Adam Danz 2019 年 6 月 20 日
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)
Mayokun  Ojediran
Mayokun Ojediran 2019 年 6 月 20 日
Thanks this solved it
Adam Danz
Adam Danz 2019 年 6 月 20 日
Great! I'll copy the comment to the answer section so the question is marked as resolved.

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

 採用された回答

Adam Danz
Adam Danz 2019 年 6 月 20 日

0 投票

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 件)

カテゴリ

製品

リリース

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