1. why its showing "Error using pvcurve (line 15) Not enough input arguments,Error in thesis (line 15) x= fsolve(pvc​urve,Ipv0)​;"?????

1 view (last 30 days)
FUNCTION CODE IS:
function F = pvcurve(Ipv)
Vpv=0.9;
global Np Ns Isc q T k Io n
Np = 1;
Ns=72;
Isc =1.82;
q= 1.6e-19;
T=298;
k=1.38e-23;
Io= 1.2987e-4;
n=1.8405;
F = -(Ipv)+ (Np*Isc)- Np*Io*((exp((q*Vpv)/(n*k*T*Ns))-1));
AND MAIN CODE IS :
clc
clear all
Vpv=0.9;
Ipv0 = 1;
global Np Ns Isc q T k Io n
Np = 1;
Ns=72;
Isc =1.82;
q= 1.6e-19;
T=298;
k=1.38e-23;
Io= 1.2987e-4;
n=1.8405;
x= fsolve(pvcurve,Ipv0);

Accepted Answer

Torsten
Torsten on 27 Mar 2018
x= fsolve(@pvcurve,Ipv0);
Best wishes
Torsten.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!