superimpose a line of slope (-5/3) on a log-log graph
5 次查看(过去 30 天)
显示 更早的评论
Hello everybody,
Do you know how to draw a straight line with a certain slope on a log-log graph please?
Here what I want to do:
Thank you in advance,
0 个评论
回答(1 个)
Davide Masiello
2022-4-20
编辑:Davide Masiello
2022-4-20
See example below
clear,clc
x = [1e1,1e4];
slope = -3/5;
offset = 1;
y = slope*x+offset;
loglog(x,y,'--r')
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!