MATLAB Function Interface Error

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 ExchangeSimulink についてさらに検索

製品

タグ

質問済み:

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