Bonjour,
je n'arrive pas a mettre une legende pour mon graphique qui est dans une boucle for. Merci pour votre aide.
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 for n=1:x Ci(n)=sin(m(n,3))*cos(h)*cos(m(n,2)-a)+cos(m(n,3))*sin(h) if Ci(n)<0 then Ci(n)=0 elseif Ci(n)>=0 then Ci(n)=Ci(n) end D(n)=real(125*((sin(h))^0.4)*((1+cos(m(n,3)))/2)+211.86*(sin(h)^1.22)*(1-cos(m(n,3)))/2); G(n)=I*Ci(n)+D(n) Kc=1-0.75*((N/8)^(3.4)); Gc(n)=G(n)*Kc scf(0); map = hsvcolormap(x); xset('colormap',map); plot(tSVET,Gc(n),'b-','marker','*','markf',map(n,:)) end
Partager