Kamis, 30 April 2020

Matlab Code GUI for ListBox

    n1=n1+1;
    n2=n2+1;
    n3=n3+1;
    n4=n4+1;
    n5=n5+1;
 
    gab1{n1+1}=['Total Gejala KR1 / Total Gejala  =' num2str(tK1) '/' num2str(Total)];
    gab2{n2+1}=['Total Gejala KR2 / Total Gejala  =' num2str(tK2) '/' num2str(Total)];
    gab3{n3+1}=['Total Gejala KR3 / Total Gejala  =' num2str(tK3) '/' num2str(Total)];
    gab4{n4+1}=['Total Gejala KR4 / Total Gejala  =' num2str(tK4) '/' num2str(Total)];
    gab5{n5+1}=['Total Gejala KR5 / Total Gejala  =' num2str(tK5) '/' num2str(Total)];
   
   
    n1=n1+1;
    n2=n2+1;
    n3=n3+1;
    n4=n4+1;
    n5=n5+1;
 
    gab1{n1+1}=['Hasil Perkalian KR1=' num2str(H1)];
    gab2{n2+1}=['Hasil Perkalian KR2=' num2str(H2)];
    gab3{n3+1}=['Hasil Perkalian KR3=' num2str(H3)];
    gab4{n4+1}=['Hasil Perkalian KR4=' num2str(H4)];
    gab5{n5+1}=['Hasil Perkalian KR5=' num2str(H5)];
   
   
    set(handles.listbox1,'string',gab1);
    set(handles.listbox2,'String',gab2);
    set(handles.listbox3,'String',gab3);
    set(handles.listbox4,'String',gab4);
    set(handles.listbox5,'String',gab5);




Tidak ada komentar:

Posting Komentar