jonathanlilly / jLab

A Matlab toolbox for big data analysis, signal processing, mapping, and oceanographic applications.
Other
112 stars 36 forks source link

cell2col not working as expected #7

Closed selipot closed 8 years ago

selipot commented 8 years ago

cell2col is not working as I expect: cell2col({[1 NaN 2 3]'*(1+1i)}) returns 1 + 1i Inf + 0i 2 + 2i 3 + 3i NaN + NaNi

whereas I expected

1 + 1i Inf + Infi ...

that is maybe because

nan+sqrt(-1)nan==nan(1+1i) is 0

but

1+sqrt(-1)==1+1i is 1?

jonathanlilly commented 8 years ago

This has been addressed, and the corrected version will be included in the next release, along with a test.