フィルターのクリア

dsp.MatFileWriter and complex numbers

1 回表示 (過去 30 日間)
Castorp
Castorp 2015 年 12 月 17 日
回答済み: Vidya Viswanathan 2015 年 12 月 21 日
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!

回答 (1 件)

Vidya Viswanathan
Vidya Viswanathan 2015 年 12 月 21 日
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.

カテゴリ

Help Center および File ExchangeArray and Matrix Mathematics についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by