Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to return a value from an array?

Status
Not open for further replies.

alcharvard

Newbie level 2
Newbie level 2
Joined
Sep 23, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,296
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
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top