dsp.MatFileWriter and complex numbers
1 view (last 30 days)
Show older comments
Hello,
I wrote some code using Linux and MATLAB 2015a that uses dsp.MatFileWriter. It worked fine when using complex numbers, which were stored in a struct as number.real and number.imag. Now I'm using MATLAB 2014b on Windows and complex numbers get somehow converted to doubles.
Why is that? Did the functionality of dsp.MatFileWriter change from 2014b to 2015a? I didn't find a note about that in the release notes.
Thank you!
0 Comments
Answers (1)
Vidya Viswanathan
on 21 Dec 2015
I understand that you notice a change in the behavior of "dsp.MatFileWriter" function between MATLAB R2014b and MATLAB R2015a in terms of saving complex-valued data.
There is, indeed, a change in the functionality of "dsp.MatFileWriter" function starting from MATLAB R2015a. Prior to this release, only the real part of complex valued data was stored in a MAT-file, thereby, truncating the imaginary part of the data. Starting from MATLAB R2015a, complex valued data are stored in the expected "complex" format.
I also observed that the Release Notes do not reflect this information. I work for MathWorks and I have forwarded this feedback to the appropriate product team.
0 Comments
See Also
Categories
Find more on Signal Generation, Manipulation, and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!