function [m,b]=straightline(x,y)
% function [m,b]=straightline(x,y)
% Performs least squares fit on the equation y=mx+b
% x and y are row vectors
% m and b are the scalar slope and intercept parameters.
[r,c]=size(x);
A=[x',ones(c,1)];
T=A\y';
m=T(1);
b=T(2);



