Undefined function and type 'double"...anyone can help?
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
% 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 comentarios
Rik
el 28 de En. de 2019
What question do you have about this error? It looks like you will have to find an alternative to using this anonymous function if you want to use code generation.
Also, your title doens't match your code or your error, so editing it to an appropriate title might help you getting a meaningful answer.
KALYAN ACHARJYA
el 28 de En. de 2019
Editada: KALYAN ACHARJYA
el 28 de En. de 2019
@madhan ravi Thanks for pointing my wrong answer. Sorry missed it. Thanks!
Walter Roberson
el 28 de En. de 2019
what code generation are you doing ? Is this in aa MATLAB Function Block in Simulink ?
Respuestas (0)
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!