converting a binary vector to polynomial form?
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Walter Roberson
2013 年 4 月 24 日
4 件のコメント
Walter Roberson
2013 年 4 月 26 日
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 ?
参考
カテゴリ
Help Center および File Exchange で Polynomials についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!