how to use 'pskmod'
조회 수: 3 (최근 30일)
이전 댓글 표시
Am getting the following errors while I run the below code.
-------------------------------------
??? Error using ==> mtimes Complex integer arithmetic is not supported.
Error in ==> pskmod at 101 y = exp(j*(theta + ini_phase));
Error in ==> lena at 9 txpsk = pskmod(msg,M);
-------------------------------------
M = 2; %Modulation order 2 for BPSK
imdata = imread('http://openvip.sourceforge.net/userdoc/lena_grayscale.jpg'); bdata = de2bi(imdata);
sizec = size(bdata,1);
sizer = size(bdata,2);
nbits = sizec*sizer;
msg = reshape(bdata,nbits,1);
txpsk = pskmod(msg,M);
댓글 수: 0
답변 (1개)
Greg Dionne
2015년 4월 10일
You'll want to convert from integer to double precision first.
txpsk = pskmod(double(msg),M);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 PSK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!