%fileName = input('File to convert: ','s')
fid = fopen(fileName);
rawData = fread(fid, 'uint32');

Fs = 52734.375;
Vref = 2.5;
LSB = Vref / (2^23 - 1);

index = find(rawData > hex2dec('7FFFFF'));
rawData(index) = rawData(index) - hex2dec('1000000');

data = double(LSB * double(rawData));

