dsp.MatFileWriter and complex numbers
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Vidya Viswanathan
am 21 Dez. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Array and Matrix Mathematics finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!