i took this result. I search for this warning message and Ifound this....http://www.mathworks.com/support/tech-notes/1200/1207.html#40I assumption: v the problem is the my .m "creates" katifund.orglex numbersand ns ask come plot real. What have to I do?My code...function = runKut4(dEqs,x,y,xStop,h)% 4th-order Runge Kutta integration.% USAGE: = runKut4(dEqs,x,y,xStop,h)% INPUT:% dEqs = handle of function that mentions the% 1st-order differential equations% F(x,y) = .% x,y = early values; y have to be row vector% xStop = terminal value of x% h = increment of x offered in integration% OUTPUT:% xSol = x-values at which solution is katifund.orguted% ySol = values of y corresponding to the x-values.if size(y,1) > 1; y=y"; finish %y should be heat vectorxSol = zeros(2,1); ySol = zeros(2, length(y));xSol(1) = x; ySol(1,:) = y;i = 1;while x ns = i+1;h = min(h,xStop - x);K1 = h*feval(dEqs,x,y);K2 = h*feval(dEqs,x + h/2,y + K1/2);K3 = h*feval(dEqs,x + h/2,y + K2/2);K4 = h*feval(dEqs,x+h,y + K3);y = y + (K1 + 2*K2 + 2*K3 + K4)/6;x = x + h;xSol(i) = x; ySol(i,:) = y; % Store present solution.end-----------------------------------------------------------function printSol(xSol,ySol,freq)% Prints xSol and also ySol arrays in tabular format% USAGE: printSol(xSol,ySol,freq)% freq = printout frequency (prints every freq-th% line of xSol and ySol). = size(ySol);if freq == 0; freq = m; endhead = " x";for i = 1:nhead = strcat(head," y",num2str(i));endfprintf(head); fprintf(" ")for ns = 1:freq:mfprintf("%14.4e",xSol(i),ySol(i,:)); fprintf(" ")endif i ~= m; fprintf("%14.4e",xSol(m),ySol(m,:)); end-----------------------------------------------------------function F = fun_dip(x,y)% differential.


You are watching: Warning: imaginary parts of complex x and/or y arguments ignored


See more: What Is 1/6 Of 12 In Fraction And Decimal Form, What Is 1/6 Of 12

Eqs. Offered in key program%____________________dedomena____________________Lf = 0.025;Cf = 0.0033;f = 60; %frequencyp = 3.14;w = 2*p*f;Ns = 365; %number of collection connected cellsNp = 17; %number that parallel connectedcellsT_1 = 1; %transformer ratioIo = 0.0000199693; %diode saturation currentIlo = 2.52;Rs = 0.001; %cell collection resistanceL = 20.05;R2 = 0.007;Lw = 0.00012+0.00036753;Go = 1000; %irradiation W/m^2G = 1000; %G 1000,550,400 W/m^2Il = (G/Go)*Ilo; %light produced currentEg = 240*sqrt(2)*sin(w*x);Ep = Eg/T_1;Vpv = (- (y(2)/Np)*Rs + (1/L)* log(((Il-(y(2)/Np))/Io)+1))*NsVCf = - Vpv + y(2)*R2%VCf = 190;%A = L*(Il*Np - y(2) + Np*Io)F = zeros(1,2);F(1) = (Ep - VCf)/(Lw + Lf);F(2) = ((y(1) - y(2))/Cf)*(1/((Ns*Rs)/Np + Ns/(L*(Il*Np - y(2) + Np*Io)) + R2));----------------------------------------------------------- = runKut4(