커뮤니티

조건만족 색깔 표시

프로필 이미지
파라나무
2011-07-14 08:27:58
681
글번호 40881
답변완료
1. if value1[1] <= 20 and value1[SLindex1+1] > value1[SLindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition2 and lowest(L,5) == lowest(L,15) 2. if Condition6 and Condition7 and Condition8 and Condition9 3. if value4[sindex1+1] > value4[sindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition14 and lowest(L,5) == lowest(L,15) 4. if molval[0] > var5 and Lval[0] < var6 and Condition17 and lowest(L,5) == lowest(L,15) 위네가지 조건중 1가지가 만족되면 Plot(0)에 회색, 두가지가 만족되면 핑크, 세가지가 만족되면 자주색 네가지 모두 만족되면 빨강으로 표시되는 식 부탁 드립니다. 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-07-14 14:28:20

안녕하세요 예스스탁입니다. var : sum1(0),sum2(0),sum3(0),sum4(0); #1 if value1[1] <= 20 and value1[SLindex1+1] > value1[SLindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition2 and lowest(L,5) == lowest(L,15) then sum1 = 1; Else sum1 = 0; #2. if Condition6 and Condition7 and Condition8 and Condition9 Then sum2= 1; Else sum2= 0; #3. if value4[sindex1+1] > value4[sindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition14 and lowest(L,5) == lowest(L,15) Then sum3 = 1; Else sum3 = 0; #4. if molval[0] > var5 and Lval[0] < var6 and Condition17 and lowest(L,5) == lowest(L,15) Then sum4 =1; Else sum4 = 0; if sum1+sum2+sum3+sum4 == 1 Then plot1(0,"0",GRAY); if sum1+sum2+sum3+sum4 == 2 Then plot1(0,"0",MAGENTA); if sum1+sum2+sum3+sum4 == 3 Then plot1(0,"0",pink); if sum1+sum2+sum3+sum4 == 4 Then plot1(0,"0",red); 즐거운 하루되세요 > 파라나무 님이 쓴 글입니다. > 제목 : 조건만족 색깔 표시 > 1. if value1[1] <= 20 and value1[SLindex1+1] > value1[SLindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition2 and lowest(L,5) == lowest(L,15) 2. if Condition6 and Condition7 and Condition8 and Condition9 3. if value4[sindex1+1] > value4[sindex2+1] and L[Lindex1+1] < L[Lindex2+1] and Condition14 and lowest(L,5) == lowest(L,15) 4. if molval[0] > var5 and Lval[0] < var6 and Condition17 and lowest(L,5) == lowest(L,15) 위네가지 조건중 1가지가 만족되면 Plot(0)에 회색, 두가지가 만족되면 핑크, 세가지가 만족되면 자주색 네가지 모두 만족되면 빨강으로 표시되는 식 부탁 드립니다. 감사합니다.