0
Can't display results on a plot

Hi,

In fact, I would like to plot C in function of Vlow, the problem is that I am not getting the results displayed on the plot, Here is the code


Vlow=350;
fs=2*100000;
n=0.56;
Lk=41.98*0.000001;
P=10000;
Vhigh=900;
C=0;
s=poly(0,"s");
while Vlow < 450   
       Polynome=((P*Lk*n*fs)./(Vhigh*Vlow))-s+s^2;
solution=roots(Polynome);
out =  solution(solution<0.35 & solution>0.129);
I1=(1./(2*Lk*fs))*(2*(Vlow./n)*out+Vhigh-(Vlow./n));
I2=(1/(2*Lk*fs))*(2*Vhigh*out-Vhigh+(Vlow./n));

 if I1 > I2 then
    C= I1;
 else
     C=I2;
 end
plot2d(Vlow,C,4);
Vlow=Vlow+20;
end


Scilab 22-06-20, 2:46 p.m. termobermo
0
You need to modify the line plot2d as below:
plot2d(Vlow,C,-1,4);
Instead of '-1' you may choose any number between -1 to -10.
13-01-22, 11:33 a.m. Rashmi


Log-in to answer to this question.