superimpose a line of slope (-5/3) on a log-log graph
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Davide Masiello
am 20 Apr. 2022
Bearbeitet: Davide Masiello
am 20 Apr. 2022
See example below
clear,clc
x = [1e1,1e4];
slope = -3/5;
offset = 1;
y = slope*x+offset;
loglog(x,y,'--r')
2 Kommentare
Siehe auch
Kategorien
Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!