Salut tout le monde,
En fait, j'ai un problème concernant l'affichage des résultats sur un graphe, lorsque j’exécute le code, le graphe s'affiche mais pas résultats. Ci-dessous le code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 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
Partager