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)
댓글 수: 3
추가 답변 (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!