Hi,
I have a test App in App Designer, with 2 Discrete knobs, Knob and Knob2. I want to change the settings ("Items") on "Knob" by moving "Knob2". This was just set up in App Designer, and the following Callback for "Knob2" added with the switch. Why doesn't this work?
methods (Access = private) % Value changed function: Knob2
function Knob2ValueChanged(app, event) value = app.Knob2.Value; switch value case '1-10' set(app.Knob,'Items',{1,2,3,4,5,6,7,8,9,10},'Value',{5}); case '11-20' set(app.Knob,'Items',{11,12,13,14,15,16,17,18,19,20},'value',{15}); case '21-30' set(app.Knob,'Items',{21,22,23,24,25,26,27,28,29,30},'value',{25}); end end enda
Thanks!
Doug Anderson
Best Answer