How do i write a code which gets the values of the table data with pop up menus and makes the user do something when a particular case was chosen?
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    sachin narain
 el 20 de Abr. de 2018
  
    
    
    
    
    Editada: sachin narain
 el 21 de Abr. de 2018
            My created UItable has datas which have popup menus like this.(Table image attached along with the question).Now i want to write a code which gets the datas of the table and checks which case was chosen.For this should i choose createafunction for the uitable and write my cases?In which function block should i write the code when a particular case was chosen?
2 comentarios
  Mahesh
      
 el 20 de Abr. de 2018
				Could you bit more clear.you select the "environment" and "location" and tick the "Authorised". Then it should do some work right?
Respuesta aceptada
  Mahesh
      
 el 20 de Abr. de 2018
        I presume your uitable choice data the enviroment and location have the strings
v = get(handles.checkbox1, 'Value'); tdata = get(handles.uitable, 'data'); a=strcmp(tdata((contains(tdata(:,1),'your_Environment'))),'your_Environment'); b=strcmp(tdata((contains(tdata(:,1),'your_City'))),'your_City'); if (v && a && b)==1 %% do something else %% do something end
1 comentario
  sachin narain
 el 21 de Abr. de 2018
				
      Editada: sachin narain
 el 21 de Abr. de 2018
  
			
		Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!