dsp.MatFileWriter and complex numbers
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Vidya Viswanathan
el 21 de Dic. de 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 comentarios
Ver también
Categorías
Más información sobre Signal Generation, Manipulation, and Analysis en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!