function design=quaddesign3(x) % builds a design matrix for a quadratic fit to the columns of x when there is derivative information % here x is n by 3. % used in quadmin design=[]; for i=1:size(x,1) design=[design;qd3(x(i,:))]; end