Double inputs must have integer values in the integer range when mixed with integer inputs.
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Guillaume
le 8 Mar 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 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!