필터 지우기
필터 지우기

i get an error when i try to define type of modulation

조회 수: 1 (최근 30일)
Ray
Ray 2015년 12월 4일
댓글: Walter Roberson 2015년 12월 5일
This expression'
mod_methods = ('BPSK','QPSK','8PSK','16QAM','32QAM','64QAM');
gives me this error
Expression or statement is incorrect--possibly unbalanced (, {, or [.

채택된 답변

Walter Roberson
Walter Roberson 2015년 12월 4일
mod_methods = {'BPSK','QPSK','8PSK','16QAM','32QAM','64QAM'};
  댓글 수: 2
Ray
Ray 2015년 12월 4일
편집: Walter Roberson 2015년 12월 5일
Thanks for the answer. I also have an error for the following line:
rec_syms = knnsearch([real(symbol_book) imag(symbol_book)], [real(X_hat) imag(X_hat)]) - 1;
Error using KDTreeSearcher/knnsearch (line 74)
Y must be a matrix with 8 columns.
Error in knnsearch (line 142)
idx = knnsearch(O,Y,'k',numNN, 'includeties', includeTies);
Error in OFDM_image (line 139)
rec_syms = knnsearch([real(symbol_book) imag(symbol_book)], [real(X_hat) imag(X_hat)]) - 1;
Walter Roberson
Walter Roberson 2015년 12월 5일
[real(symbol_book) imag(symbol_book)] together makes a matrix with 8 columns, such as if there are 4 columns in symbol_book. But [real(X_hat) imag(X_hat)], the locations to search for, does not have 8 columns. The locations to search for (the second parameter) must have the same number of columns as the first parameter.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by