matlab invalid expression issue

solar_cell = @(V_mp) exp((q.*V_mp)./(kb.*T(k)))).*(1+((q.*V_mp)./(kb.*T(k))))-(exp((q.*V_OC)./(kb.*T(k))))
%i am being told "Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters"

Respuestas (2)

madhan ravi
madhan ravi el 25 de Abr. de 2019
solar_cell = @(V_mp) exp((q.*V_mp)./(kb.*T(k))).*(1+((q.*V_mp)./(kb.*T(k))))-(exp((q.*V_OC)./(kb.*T(k))))
Walter Roberson
Walter Roberson el 25 de Abr. de 2019

0 votos

solar_cell = @(V_mp) exp((q.*V_mp)./(kb.*T(k)))) <-- too many ) at this point

Categorías

Más información sobre Debugging and Improving Code en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Abr. de 2019

Respondida:

el 25 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by