how to represent binary values as polynomial expression?
2 次查看(过去 30 天)
显示 更早的评论
hello ,
i m working with cyclic codes,where i have to generate polynomial expression for the binary sequences for example
a=[1 0 1 1]
i tried with poly2sym(a)..it worked..
my problem is when a=1011 i m getting output as 1..
similary i have to generate polynomial xepression for 16 possible bits.
plz,suggest me...
0 个评论
采纳的回答
Grzegorz Knor
2011-11-3
My suggestion:
a=1011
tmp = sprintf('%i',a);
a = str2num(sprintf('%c ',tmp(:)));
poly2sym(a)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!