weird error when run simulinlk

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.

回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

リリース

R2019b

質問済み:

2019 年 12 月 17 日

回答済み:

2020 年 1 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by