Hi, after using the forum for the past few months I have came across I problem I cannot find a solution to. Hope you can help 🙂
I have two popup menus, the first which is to select a vehicle. I have set that when a vehicle is chosen, the second popup menu will automatically go to the recommended tyre for this vehicle. I am able to make the second popup menu change to the correct selection upon picking a vehicle. However the variables associated with this selection is not updating unless I click on the second popup menu and select the tyre manually.
Can I automatically update all the variables in to the workspace for the second popup menu from only making a selection from the first popup menu. This is the simplified code, I am using set(handles) to set the selection for the second popup menu. But no variables are sent to workspace.
function popupmenu1_Callback(hObject, eventdata, handles)popupmenu1 = get(handles.popupmenu1,'value'); switch popupmenu1 case 2 set(handles.popupmenu2,'value',2); case 3 set(handles.popupmenu2,'value',3); end
Hope this all makes sense. Thanks
Best Answer