hello, i have a question about MATLAB. When i run the simulation, MATLAB give instruction "MATLAB Function Interface Error: Domain error. To compute complex results from real x, use 'sqrt(complex(x))'. Block MATLAB Function1 (#248) While executing: none "
how to solve this problem

 채택된 답변

Walter Roberson
Walter Roberson 2013년 11월 22일

0 개 추천

If PA < Pa then Pa/PA > 1; raise that to a fraction and you get a number > 1. Subtract that from 1 and you get a negative value. Direct sqrt() of a negative value is not permitted in Simulink. If you need the complex square root then use sqrt(complex(TheExpression))

댓글 수: 1

suzlan
suzlan 2013년 11월 22일
oh thank you for your helping....i will try this method..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

태그

질문:

2013년 11월 22일

댓글:

2013년 11월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by