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
2019-4-25
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
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!