Without the opportunity to try, I can only guess that you can play with the format.
The best would be format shortg , this can hide the imaginary part or just make it less distracting:
rand(3) ; ans(1,1)=1+i format shortg rand(3) ; ans(1,1)=1+i
Yes, this is shortg instead of short . He tries not to show irrelevant zeros and decimals.
source share