How to use Bitxor for Double Numbers?
问题 I want to use xor for my double numbers in matlab,but bitxor is only working for int numbers. Is there a function that could convert double to int in Matlab? 回答1: The functions You are looking for might be: int8(number) , int16(number) , uint32(number) Any of them will convert Double to an Integer, but You must pick the best one for the result You want to achieve. Remember that You cannot cast from Double to Integer without rounding the number. If I understood You correcly, You could create a