alcharvard
Newbie level 2
How to return a value from an array in MATLAB?
I want to create an array for example of [1 0 1 1 0 0 1 1 1 0 1 0 1 1 1] which is an array to be randomly input.
wherein the variable for each position of the vector is (x^) --- [14 13 12 11 10 9 8 7 6 5 4 3 2 1 0]
so it would return [x^14 0 x^12 x^11 0 0 x^8 x^7 x^6 0 x^4 0 x^2 x 1] and I'd want to define this as maybe A.
then becomes a polynomial x^14 + x^12 + x^11 + x^8 + x^7 + x^6 + x^4 + x^2 + x + 1 ... then I'd want to define this as B
I want to create an array for example of [1 0 1 1 0 0 1 1 1 0 1 0 1 1 1] which is an array to be randomly input.
wherein the variable for each position of the vector is (x^) --- [14 13 12 11 10 9 8 7 6 5 4 3 2 1 0]
so it would return [x^14 0 x^12 x^11 0 0 x^8 x^7 x^6 0 x^4 0 x^2 x 1] and I'd want to define this as maybe A.
then becomes a polynomial x^14 + x^12 + x^11 + x^8 + x^7 + x^6 + x^4 + x^2 + x + 1 ... then I'd want to define this as B
Last edited: