MATLAB Answers

Complex vector conversion to binary bits using quantizer

25 ビュー (過去 30 日間)
I have a complex vector 1601*1. I want to Quantize this vector into binary bits using some quantizer by selecting different threshold regions.

  0 件のコメント



Abhishek Kumar
Abhishek Kumar 2019 年 7 月 9 日
It would be easier if you could give an example of want is your input and what is your expected output.
Below is an example which shows you how to convert a complex number to binary.
clear; clc; close all;
% a complex number
% parameters for fixed point conversion
sign=0; % unsigned numbers
% covertion to fixed point
X=fi(x,sign,wordLength, fractionalPart);
% how to access values
disp('binary word: '); disp(Xre.bin); fprintf('\n');
disp('real world value, as a string: '); disp(Xre.Value); fprintf('\n');
disp('fixed point value: '); disp(; fprintf('\n');
% comparison with floating arithmetic values
disp('rounding error: ')
disp( )
Here are a few links which should remove any further doubts.

  1 件のコメント

Muhammad Faheem Awan
Muhammad Faheem Awan 2019 年 7 月 9 日
Thankyou @abhishek..


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by