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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1019195/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1019195/image.png)
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!