p=uipanel;
sliderterminal = uicontrol(p,'Style','slider');
sliderinitial = uicontrol(p,'Style','slider');
sliderthreshold = uicontrol(p,'Style','slider');
bg = uibuttonggroup(p);
rinitial = uicontrol(bg,'Style','radiobutton','Callback',@initialcutoff)
rterminal = uicontrol(bg,'Style','radiobutton','Callback',@terminalcutoff)
rthreshold = uicontrol(bg,'Style','radiobutton','Callback',@thresholdindex)
function initialcutoff(sliderthreshold,sliderinitial,sliderterminal)
sliderterminal.Visible='off';
sliderthreshold.Visible='off';
sliderinitial.Visible='on';
end
function terminalcutoff(sliderthreshold,sliderinitial,sliderterminal)
sliderinitial.Visible='off';
sliderthreshold.Visible='off';
sliderterminal.Visible='on';
end
function thresholdindex(sliderthreshold,sliderinitial,sliderterminal)
sliderinitial.Visible='off';
sliderterminal.Visible='off';
sliderthreshold.Visible='on';
end