%% testlinearVScubic

% generate perfect linear data series.

x=1:100;
y=[1:100].*rand(1,100);

plot(x,y)
% hold all
% plot(x,y.^3)
l_fit = polyfit(x,y,1)
l_corr = corr(x',y')

c_fit = polyfit(x.^3,y,1)
c_corr = corr((x.^3)',y')