Why is my Simulink data type randomly changing?
Afficher commentaires plus anciens
I am having an issue with my Simulink simulation in that it is randomly changing from complex double at the output of one block to double at the input of the next, like so:

I really have no idea why this is happening, and it's causing Simulink to throw an error since the downstream code expects a complex double for the rest of the program. I am confused why it is changing type despite there being no block there?
If this helps debugging, I had this code running perfectly fine before I decided to implement a switch/case -> merge before the square root filter. Could there be some type of data type inheritance issue causing this? I have attempted to change the square root data type options but there doesn't seem to be anything that helps there.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Block Libraries dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!