Hi everybody, I have used the following code, and get the fig as shown below.
x = [9.384,39.27];Y1 = 6.49e-12 * x.^(-4); Y2 = 4.36e-10 * x.^(-5); Y3 = 1.69e-10 * x.^(-4.3);loglog(x,Y1,'*') hold onloglog(x,Y2,'*') hold onloglog(x,Y3,'*') set(gca,'xtick',[9.384 39.27]);set(gca,'xticklabel',{'A','B'});
Now I need to draw the best fit between A and B (best fit line draw from points at A towards points at B). I know the best fit in case of simple x and y plot, but due to hold on I do not know how to do this. Any guidance will be appreciated thanks.
Best Answer