?? a_input.m
字號:
function [bit,jb]=a_input(y,jb,ipr);
% Function used by a_decode to pull one bit from y.
% bit =bit pulled: 1 or 0.
% jb =bit location in y - incremented and output as jb+1.
% ipr has the same effect here as in a_decode when =2.
iy=fix(jb/8)+1;
% Byte=0 if length of y is exceeded.
if iy>length(y),
byte=0;
else
byte=y(iy);
end
ybit=7-rem(jb,8);
bit=rem(fix(byte/2^ybit),2);
if ipr==2,
fprintf('Pulled%2.0f at jbit=%7.0f\n',bit,jb);
end
jb=jb+1;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -