non linear equation "problem with not enough arguments"

Im wriitng this to verify my non-linear equations..but having problem with this problem :
"nlinearval
Error using nlinearval (line 14)
Not enough input arguments.
function F=nlinearval(z)
Can anyone help me how i can solve this problem? Below are my coding:
function F=nlinearval(z)
%define constants
Isc=8.53;
Voc=44.9;
Vmp=36.1;
Imp=8.04;
Ns=72;
dv_di_oc=-0.48766;
di_dv_sc=-2.48797e-3;
q=1.6e-19;
k=1.381e-23;
T=298;
x = z(1);
y = z(2);
w= z(3);
Rsh = -1/(di_dv_sc);
b=exp(q*((Vmp+Imp*w)/(Ns*y*k*T)));
c=exp((Voc*q)/(Ns*y*k*T));
F(1)=[x-((Isc-(Voc/Rsh))/(c-1))-0];
F(2)=Imp-Isc+x*b+((Vm+Imp*w)/(Rsh));
F(3)=w+dv_di_oc+(1/((x*q)/((Ns*y*k*T)*c)));
end

 채택된 답변

madhan ravi
madhan ravi 2018년 12월 10일
F=nonlinear(1:3) % calling of the function

댓글 수: 5

tried..but still cant run it...
madhan ravi
madhan ravi 2018년 12월 10일
편집: madhan ravi 2018년 12월 10일
What now ? what's the error message ? paste everything in red
finally i got the answer...thanks alot madhan.
madhan ravi
madhan ravi 2018년 12월 11일
편집: madhan ravi 2018년 12월 11일
Anytime :) , what answer did you get? I got the below:
6.461598829189919
29.066194355037609
-18.695950060271482

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

질문:

2018년 12월 10일

편집:

2018년 12월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by