function ColormapListBoxValueChanged(app, event)
%             value = app.ColormapListBox.Value;
% Get the selected colormap from the Listbox
Items = {'jet', 'hsv', 'hot', 'cool'};
selected_colormap = Items{app.ColormapListBox.Value};
% Switch-case to change colormap based on selected_colormap
switch selected_colormap
    case 'jet'
        colormap(app.UIAxes, jet);
    case 'hsv'
        colormap(app.UIAxes, hsv);
    case 'hot'
        colormap(app.UIAxes, hot);
    case 'cool'
        colormap(app.UIAxes, cool);
end
this is cide but not working , what is the wrong?


