All pastes #387392 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-09 10:08 UTC
rendered paste body
function x=bin2int(a)

% Function to convert binary to integer

if(~isempty(a))

    for ii=1:length(a)

        if a(ii)==1

            b(ii)='1';

        else

            b(ii)='0';

        end

    end

else x=[];return;

end

x=bin2dec(b);