How to quantize an audio file to be ready for OFDM?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to send an audio file over a channel using OFDM. But it keeps giving me an error at the very start:
% Read the audio file
[y, Fs] = audioread('file.wav');
binaryData = dec2bin(quantize(y, 8));
AfterwardsI use PSK modulation, then I convert it from Serial to paralell. And comes IFFT. But here at this line I get this error:
Error using quantize
Inputs of class 'double' are not supported.
I don't understand how I can fix this problem. I tried using int8 but had no luck as I received more errors.
If I am approaching the problem in a wrong way, please tell.
I am somewhat new at everything. I would appretiate any help given.
댓글 수: 0
답변 (1개)
Aditya Srikar
2023년 3월 31일
Hi Harry,
The first parameter of quantize() should be a quantizer object.
Please refer the documentation for more details
Hope it helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!