Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

1 visualizzazione (ultimi 30 giorni)
Noury Chan
Noury Chan il 28 Gen 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
% 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 Commenti
KALYAN ACHARJYA
KALYAN ACHARJYA il 28 Gen 2019
Modificato: KALYAN ACHARJYA il 28 Gen 2019
@madhan ravi Thanks for pointing my wrong answer. Sorry missed it. Thanks!
Walter Roberson
Walter Roberson il 28 Gen 2019
what code generation are you doing ? Is this in aa MATLAB Function Block in Simulink ?

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by