converting a binary vector to polynomial form?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
If i have a binary vector:
x = 1 0 0 1 0 1
how can i convert this to polynomial form:
y = x.^5+x.^2+1
regards.
0 Commenti
Risposte (1)
Walter Roberson
il 24 Apr 2013
4 Commenti
Walter Roberson
il 26 Apr 2013
You could just
find(fliplr(x)) - 1
which would, in this example, output 5 2 0
Anyhow, so you are looking for a string output ?
Vedere anche
Categorie
Scopri di più su Polynomials in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!