I have a matrix (n,2) that have in the first column the min values and in the second column the max values. I want to create a new matrix (n,100) with uniform distributions in each row using the rand function and picking as MIN value the first value and as MAX value the second value from each row related to the matrix (n,2). In my code it always get the error "Size inputs must be scalar" in the the rand function.
Code:
p=length(t);ii=1;pdf=[];while ii<=p IMIN=t(ii,1); IMAX=t(ii,2); pdf=rand([IMIN IMAX],p,100); ii=ii+1 end
Best Answer