Effacer les filtres
Effacer les filtres

2 x axis log scale and 1 y axis

2 vues (au cours des 30 derniers jours)
Khaled aL Qattawi
Khaled aL Qattawi le 2 Juin 2022
i wanna plot like the attached graph, please someone help me write the code of this.

Réponse acceptée

Chunru
Chunru le 2 Juin 2022
% generate some data
dollarlost = logspace(4, 12, 81);
p3 = 1e5./dollarlost;
p2 = 1e4./dollarlost;
p1 = 1e3./dollarlost;
loglog(dollarlost, p1, 'g-', dollarlost, p2, 'b--', dollarlost, p3, 'r:')
grid on
ylim([1e-7, 1])
  2 commentaires
Khaled aL Qattawi
Khaled aL Qattawi le 2 Juin 2022
Modifié(e) : Khaled aL Qattawi le 2 Juin 2022
that is perfect, but would i add the top x axis ???? love loss?? @Chunru
Khaled aL Qattawi
Khaled aL Qattawi le 2 Juin 2022
Modifié(e) : Khaled aL Qattawi le 2 Juin 2022
thank you so much for this, i really appreciate it. @Chunru

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by