Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Undefined function and type 'double"...anyone can help?

1 回表示 (過去 30 日間)
Noury Chan
Noury Chan 2019 年 1 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
% Locate the operating point of PV module and
% calculate its voltage, current, and power
f = @(x) x - Rin*bp_sx150s(x,G,TaC);
Va_k = fzero (f, [0, 45]);
Ia_k = bp_sx150s(Va_k,G,TaC);
Pa_k = Va_k * Ia_k;
error:
Undefined function or variable 'Va'
Undefined function or variable 'f'.
Anonymous functions are not supported for code generation.
  3 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 1 月 28 日
編集済み: KALYAN ACHARJYA 2019 年 1 月 28 日
@madhan ravi Thanks for pointing my wrong answer. Sorry missed it. Thanks!
Walter Roberson
Walter Roberson 2019 年 1 月 28 日
what code generation are you doing ? Is this in aa MATLAB Function Block in Simulink ?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by