GUI Another help
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
 I have list of components 
 1) Methane
 2) Propane
 3) Butane
 I am using list drop down box to include all these components, but  these components do have a associated properties like 'Tc=2','Pc=3'  for each of the components , I want to a GUI program to load them when  selected , is it possible ? how ?
댓글 수: 0
채택된 답변
  SUDIP PODDAR
      
 2012년 4월 3일
        Place this code to the call back of listbox
index_selected = get(hObject,'Value'); if ( index_selected == X ) TC = 2; PC = 3; else TC = 6; PC = 7; end like this.
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
