function PruebasdisponiblesButtonGroupSelectionChanged(app, event) switch app.PruebasdisponiblesButtonGroup.SelectedObject.Text case 'PBU' if app.FuncinDropDownLabel == "Pwf" app.UIAxes.YLabel.String = 'Pwf'; app.UIAxes2.YLabel.String = 'Pwf'; app.UIAxes3.YLabel.String = 'Pwf'; elseif app.FuncinDropDownLabel == "m(p)" app.UIAxes.YLabel.String = 'm(p)'; app.UIAxes2.YLabel.String = 'm(p)'; app.UIAxes3.YLabel.String = 'm(p)'; elseif app.FuncinDropDownLabel == "P^2" app.UIAxes.YLabel.String = 'P^2'; app.UIAxes2.YLabel.String = 'P^2'; app.UIAxes3.YLabel.String = 'P^2'; end case 'PDD' if app.FuncinDropDownLabel == "Pwf" app.UIAxes.YLabel.String = 'Pwf'; app.UIAxes2.YLabel.String = 'Pwf'; app.UIAxes3.YLabel.String = 'Pwf'; elseif app.FuncinDropDownLabel == "m(p)" app.UIAxes.YLabel.String = 'm(p)'; app.UIAxes2.YLabel.String = 'm(p)'; app.UIAxes3.YLabel.String = 'm(p)'; elseif app.FuncinDropDownLabel == "P^2" app.UIAxes.YLabel.String = 'P^2'; app.UIAxes2.YLabel.String = 'P^2'; app.UIAxes3.YLabel.String = 'P^2'; end end end end end % Component initialization
methods (Access = private)
[SL: formatted code as code]
Best Answer