2 x axis log scale and 1 y axis

2 次查看(过去 30 天)
i wanna plot like the attached graph, please someone help me write the code of this.

采纳的回答

Chunru
Chunru 2022-6-2
% 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 个评论
Khaled aL Qattawi
编辑:Khaled aL Qattawi 2022-6-2
that is perfect, but would i add the top x axis ???? love loss?? @Chunru
Khaled aL Qattawi
编辑:Khaled aL Qattawi 2022-6-2
thank you so much for this, i really appreciate it. @Chunru

请先登录,再进行评论。

更多回答(0 个)

类别

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