im having trouble turning on and off visiblity of a dropdown component and a button component
This error has come up for "switch expression must be a scalar or a character vector
app.SelectfeildDropDown.ValueChangedFcn
app.SelectfeildDropDown.Items
for
app.SelectfeildDropDown.Value
nothing happens we i change the value on the GUI
% Callbacks that handle component events
methods (Access = private)
% Value changed function: SelectfeildDropDown
function SelectfeildDropDownValueChanged(app, event)
switch(app.SelectfeildDropDown.DropDown.value)
case 'select'
case 'Tempreture'
app.MetrictoImperialButton.Visible
app.DropDown.Visible
case 'Length'
app.MetrictoImperialButton.Visible
app.DropDown.Visible
case 'Mass'
app.MetrictoImperialButton.Visible
app.DropDown.Visible
end
end
end
Best Answer