When you copy and paste numbers, you are never getting the complete precision of the numbers. Even "format long g" does not give you the last digit of the number. You would need to display the numbers with a longer format, such as num2str with a %.17g format. "format long g" can differ in the last one or two bits from what you would get from %.17g .
See also num2hex() to check to see the exact representation of numbers, so that you can check whether the number you transferred is exactly the same in both cases.
For example,
>> q(2)
ans =
63782.4529892424
>> num2hex(q(2))
ans =
'40ef24ce7ee34bb5'
>> num2hex(63782.4529892424)
ans =
'40ef24ce7ee34bb2'
>> num2str(q(2),'%.17g')
ans =
'63782.452989242425'
>> num2hex(63782.452989242425)
ans =
'40ef24ce7ee34bb5'
