annotate poly_mat.m @ 4:72c011ed1977 tip

more elaborate example with non-stat. estimate explanation
author smusevic
date Tue, 30 Jul 2013 09:56:27 +0100
parents 462de60d7e94
children
rev   line source
Saso@1 1 function t_mat = poly_mat(tt, dgr, N)
Saso@1 2 t_mat = ones(dgr,N);
Saso@1 3 if dgr > 1
Saso@1 4 t_mat(2,:) = tt;
Saso@1 5 for k=3:dgr
Saso@1 6 t_mat(k,:) = t_mat(k-1,:) .* tt;
Saso@1 7 end
Saso@1 8 end