weird error when run simulinlk

1 visualizzazione (ultimi 30 giorni)
Yang Shen
Yang Shen il 17 Dic 2019
when I run the below simulink program, there is a error: 'Domain error. To compute complex results, make at least one input complex, e.g. 'power(complex(a),b)'.' But I don't compute complex results. And if I copy the matlab function into a .m file, and run it in matlab (not simulink), I can the right results.
Could somebody help me fix this please? I have suffered it one week.

Risposte (1)

Urmila Rajpurohith
Urmila Rajpurohith il 8 Gen 2020
MATLAB transforms the values to complex when it is needed but Simulink does not.
You can have a look at similar question:

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by