cadence_data = readtable('just_adder_1p2_ABS_matlab.csv','ReadVariableNames',0);
cadence_data = cadence_data{:,:};
cadence_data(1,:) = [];
cadence_data = cellfun(@str2double,cadence_data);
for i = 1:1:size(cadence_data,1)
cadence_data(i,7) = bi2de(cadence_data(i,4));
end
Error:
Error using bi2de>validateInputs (line 81)
The elements of the matrix are larger than the base can represent.
Error in bi2de (line 35)
[b_double, inType, p, msbFlag] = validateInputs(b, varargin{:});
Error in cadence_just_adder (line 15)
cadence_data(i,7) = bi2de(cadence_data(i,4));
The excel file attached has binary valued cells (columns 2,4 and 6). How can I convert those 16 bit binary bits in to decimal values?
Thanks in advance
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/521291-how-do-i-convert-the-binary-valued-column-to-decimal#comment_837237
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/521291-how-do-i-convert-the-binary-valued-column-to-decimal#comment_837237
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/521291-how-do-i-convert-the-binary-valued-column-to-decimal#comment_837252
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/521291-how-do-i-convert-the-binary-valued-column-to-decimal#comment_837252
Sign in to comment.