Why does the Create Diagonal Matrix block produce incorrect results with complex data types in DSP Blockset 5.0 (R13) and later versions?
Show older comments
I obtain incorrect results from the Create Diagonal Matrix block with complex data types in DSP Blockset 5.0 (R13) and later versions.
If I provide the following input vector to the Create Diagonal Matrix block:
[3; 2; 4]
I receive the correct output matrix and all of the elements off the diagonal are equal to zero. However, if I use a complex number for the first element like so:
[3i; 2; 4]
the output matrix contains non-zero values for elements off the diagonal.
Is the expected behavior?
Accepted Answer
More Answers (0)
Categories
Find more on Signal Attributes and Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!