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"

답변 (2개)

madhan ravi
madhan ravi 2019년 4월 25일

0 개 추천

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 2019년 4월 25일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Debugging and Improving Code에 대해 자세히 알아보기

질문:

2019년 4월 25일

답변:

2019년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by