How do I plot even spaced but uneven value increment graphs?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mayokun Ojediran
le 20 Juin 2019
Réponse apportée : Adam Danz
le 20 Juin 2019
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!!

3 commentaires
Adam Danz
le 20 Juin 2019
Great! I'll copy the comment to the answer section so the question is marked as resolved.
Réponse acceptée
Adam Danz
le 20 Juin 2019
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!