weird error when run simulinlk
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Urmila Rajpurohith
2020 年 1 月 8 日
MATLAB transforms the values to complex when it is needed but Simulink does not.
You can have a look at similar question:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!