I'm trying to create an m script that will give me different polynomials as results.
I want to know how to set up the code so that
but I won't need the value of x and variable A will remain as a polynomial.
A doesn't have to be a single polynomial, it could be an array of polynomials.
I wish to put this in a for loop so it would be nice to know how.
In the end, the code will resemble something like this
for i = 1:100
syms x
v1 = x^2+1;
v2 = x^5+4;
v3 = x^23-45;
c1 = i;
c2 = i^2;
c3 = i^3;
A{i} = c1*v1+c2*v2+c3*v3;
end
And of course, there will be no value of x because they are all polynomials.
Please help. Thank you.