superimpose a line of slope (-5/3) on a log-log graph
조회 수: 4 (최근 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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
