필터 지우기
필터 지우기

how to represent binary values as polynomial expression?

조회 수: 2 (최근 30일)
faa nad
faa nad 2011년 11월 3일
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...

채택된 답변

Grzegorz Knor
Grzegorz Knor 2011년 11월 3일
My suggestion:
a=1011
tmp = sprintf('%i',a);
a = str2num(sprintf('%c ',tmp(:)));
poly2sym(a)
  댓글 수: 3
Grzegorz Knor
Grzegorz Knor 2011년 11월 3일
smartly :)
faa nad
faa nad 2011년 11월 5일
thanks for the reply

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by