I am creating a pop up menu in matlab to find different things related to probability the function needs compute the Sum of probabilities if selcted and return for the user to make another choice and end if the user selects quit. I am not sure if I am doing this correctly at all. just looking for some pointers to ensure I am on the correct path. I am also trying to avoid using GUI if possible
This is my code so far:
error('Different number of outcomes and probabilities');
'String',{'Sum of Probabilities','Expected Value','Variance','Standard Deviation', 'Quit'},...
'Callback',@mypopup_fcn,...
'Position',[0 0.5 1 0.5]);
h_textbox = uicontrol(...
function changetype(hObj,~)
h_textbox = ('The sum of the probabilities are ')