matlab: How to convert a vector of complex double elements to a vector of 24bit (each element)? (using the fact that the real part is 12 bit and the imaginary part 12 bit)
My try:
fileOpen=fopen('newFile.txt');
fprintf(fileOpen, '%d,\r\n', real(complexNum)+((imag(complexNum))*(2^12))));
fclose(fileOpen);