Error using bitcmp ASSUMEDTYPE must be an integer type name.

조회 수: 12 (최근 30일)
Weslley Eduardo
Weslley Eduardo 2019년 6월 18일
I'm trying to apply an steganography LSB code that is got here.
How do I solve this?
I try:
function output = bitcmpOld(x,N)
if nargin < 2
output = bitcmp(x);
else
maxN = 2^N-1; % This is the max number you can represent in 4 bits
fmt = 'uint8'; % You can change uint8 to uint16 or 32
out1 = eval(['bitcmp(',fmt,'(x)',',''',fmt,''')']);
out2 = eval(['bitcmp(',fmt,'(maxN)',',''',fmt,''')']);
output = out1 - out2;
end
end
But don't work.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by