Create two arrays x and y, containing your values. Then use the command:
[polyCoeffs, s] = polyfit(x,y,1);
m=polyCoeffs(1)
c=polyCoeffs(2) <----I think this is the notation
x0=(the value of x you want)
y0=m*x0 + c <----equation of a straight line
Hope this helps.