Can i control Pop up menu depending on other pop up menu drop down

1 次查看(过去 30 天)
Hello all,
I have two pop up menus namely pop1 and pop 2 with selections 1,2,3 each respectively. is it possible to implement like if i select 1 in pop1 automatically even in pop2 1 should be selected.

采纳的回答

Jan
Jan 2019-1-30
编辑:Jan 2019-1-30
Yes.
function Pop1_Callback(hObject, eventdata, handles)
if isequal(hObject.Value, 1)
handles.Pop2.Value = 1;
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by