?? bin2flt.m
字號:
function f = bin2flt(c)
% bin2flt Expand a binary representation of floating point mantissa
%
% Synopsis: f = bin2flt(c)
%
% Input: c = (string) bit sequence of the fractional part of a normalized
% floating point number.
%
% Output f = numerical equivalent of the bit pattern
% f = sum(k=1:n){ c(k)*2^(-k) }
f=0;
for k=1:length(c)
f = f + str2num(c(k))*2^(-k);
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -