%fileName = input('File to convert: ','s')

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

fid = fopen(fileName);
fprintf(1, 'Reading %s \n', fileName);
ADCData = fread(fid, 'int16=>int16');
fclose(fid);

%For data in Volta
% Vref = 1.5;
% LSB = Vref / (2^15 - 1);

%For data in Volta
Vref = 1.0;
LSB = 1.0;

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

rms = sqrt(mean(single(data).^2));