How would i go about adding a line of best fit to this plot?
E = 6.9*10^10;xaxis = [-20, -11.8, 0.4, 9.4, 20];stress = [0.00039174, 0.00017886, -2.02e-06, -0.000214, -0.0002926]*E;stress1 = stress;plot(xaxis, stress1, 'r', 'Marker', '*')xlabel('Vertical Distance from Neutral Axis (mm)')ylabel('Stress (N/mm^2)')title('Stress data with respect to Neutral axis')legend('Stress data')
Best Answer