Double inputs must have integer values in the integer range when mixed with integer inputs.
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Double inputs must have integer values in the integer range when mixed with integer inputs.
Error in Encryption_Decryption_total_process.m (line 118)
xorr1(1,i)=bitxor(column_image(i),m(i));
0 Kommentare
Antworten (1)
Guillaume
am 8 Mär. 2019
The error is fairly clear. Either column_image or m is of type double while the other is an integer type. And the value at index i of that double is either not an integer or an integer outside the valid range of the integer type.
The values of the double array must be in the range
theintegertype = 'int8'; %replace by actual type
validrange = [intmin(theintegertype), intmax(theintegertype)]
If you were expecting your double to have the same range as the integer type, then you need to find the bug in your code. Otherwise, you'll have to use a larger integer type.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!