T = 240;
n_pix = 20;

m = 1:1:n_pix;
temp(m) = polyval(p(m,:),T);

%temp = zeros(1,n_pix);
%for m = 1:1:n_pix
%   temp(m) = polyval(p(m,:),T);
%end
