How to generate a .dat from i q data?

55 visualizaciones (últimos 30 días)
Eric
Eric el 31 de Oct. de 2024 a las 18:59
Respondida: Walter Roberson el 31 de Oct. de 2024 a las 22:19
I'm trying to export a waveform from matlab into aaronia rtsa suite. I have the i and q available to me for the waveform in matlab, i tried to make a .dat file and import into aaronia and it gives an error for the file in arronia (file source in critical state). How exactly can i get the waveform into aaronia? Is .dat the easiest file format to get it into? Is it possible to convert to a .RTSA file in matlab? Any help will be appreciated!

Respuestas (1)

Walter Roberson
Walter Roberson el 31 de Oct. de 2024 a las 22:19
Probably it goes something like this:
filename = 'OutputFileNameGoesHere.dat';
[fid, msg] = fopen(filename, 'w');
if fid < 0
error('failed to open file "%s" because "%s"', filename, msg);
end
IQDATA = [reshape(IDATA, 1, []); reshape(QDATA, 1, [])];
fwrite(fid, IQDATA, '*single');
fclose(fid)
... but perhaps it uses a different file format, or represents the IQ data as int16, or has headers...

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by