How can I use selections from multiple uidropdowns as function inputs?
I’m using two (2) uidropdowns with a valuechangedfcn to live update the x-y axes for a plot based on the selected variable. I can’t figure out how to simultaneously pass the information from both dropdowns to my plotting function. For example, say I have data for three variables: time, position, and velocity, and I have two drop downs each containing the same three variables for the x and y axes. I’m unable to retain a previous variable selection for the x-axis once I select a new variable for the y-axis, so it just reverts to the initialized x-variable. Is there a way to store the selection from each dropdown simultaneouslyI’m using two (2) uidropdowns with a valuechangedfcn to live update the x-y axes for a plot based on the selected variable. I can’t figure out how to simultaneously pass the information from both dropdowns to my plotting function. For example, say I have data for three variables: time, position, and velocity, and I have two drop downs each containing the same three variables for the x and y axes. I’m unable to retain a previous variable selection for the x-axis once I select a new variable for the y-axis, so it just reverts to the initialized x-variable. Is there a way to store the selection from each dropdown simultaneously I’m using two (2) uidropdowns with a valuechangedfcn to live update the x-y axes for a plot based on the selected variable. I can’t figure out how to simultaneously pass the information from both dropdowns to my plotting function. For example, say I have data for three variables: time, position, and velocity, and I have two drop downs each containing the same three variables for the x and y axes. I’m unable to retain a previous variable selection for the x-axis once I select a new variable for the y-axis, so it just reverts to the initialized x-variable. Is there a way to store the selection from each dropdown simultaneously uidropdrown, appdesigner, plot, gui MATLAB Answers — New Questions