% success trial for small matrix
clcclear allclose all% Read matrix
X=pascal(3);disp(X);[r c]=size(X);i=1;%while i==c
for j=1:c z=[X(i,j);X(i+1,j);X(i+2,j)]; disp(z);endi=i+1;%end
breaks=[0 4 8 12];pp=mkpp(breaks,X);%ppn=vertcat(pp);
ppn=cell2mat(struct2cell(pp));a=polyvalm(X,pp);
Best Answer