i want to draw a least square line to log-log plot i am using following scripy
wet=[120 49 30 21 12 10 9 7 4];dry=[49 12 5 1 1 1 0 0 0 ];x1=[1 2 3 4 5 6 7 8 9];scatter(x1,wet);set(gca,'XScale','log');set(gca,'YScale','log');lsline
but it is not working. is their any other way to draw a line which is straight pass through the points
Best Answer