weird error when run simulinlk

조회 수: 1 (최근 30일)
Yang Shen
Yang Shen 2019년 12월 17일
답변: Urmila Rajpurohith 2020년 1월 8일
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개)

Urmila Rajpurohith
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:

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by