superimpose a line of slope (-5/3) on a log-log graph
1 回表示 (過去 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/970430/image.png)
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!