I have function like this,
function knotident(x,nknot,rand)clc;[~,n]=size(x);for i=1:n z=x(:,i); c=min(z); d=max(z); if nknot == 1 t=random('unif',c,d,[rand,1]); else for g=1:nknot r=random('unif',c,d,[rand,1]); t(:,g)=r; end t=sort(t,2); endkgab(:,i)=t;end
rand and nknot can be any number. now, i wanna save the result from the loop above for t in matrix with size (rand,nknot*n), but i don't know how to do that. in that syntax i use kgab(:,i)=t; but it cant work if nknot>1. Please help me…
thanks in advance
Best Answer