Generate random linearly independent polynomials on MATLAB -
i create set of k random linearly independent polynomials of m-th order on matlab. came across this question on stackoverflow not sure of linear independence; , not looking make binary mentioned in referred question.
i tried using:
p = rand(k,m);
will give me k random linearly independent polynomials of m-th order?
you can use numerical properties of orthogonal decomposition matrices linear independence.
m = 10; f = rand(m); f = f + f'; [q,~] = qr(f); p = q'*diag(rand(1,m))*q;
Comments
Post a Comment