K>> asdfasdf=[1 1 1]
asdfasdf =
1 1 1
K>> asdfasdf(4)=-2.3604 + 0.1536i
asdfasdf =
1.0000 + 0.0000i 1.0000 + 0.0000i 1.0000 + 0.0000i -2.3604 + 0.1536i
Why did the first 3 elements suddenly become complex? And how can I prevent Matlab from doing this? Real is real. And this shouldn't change to imaginary just because another element is imaginary.