MATLAB: Hidding ans in menu

menu answer

hello guys,
i made this function
.
a = menu ('Wanna plot….?','Yes','No') if a == 1
plot…………….. .
elseif a == 2
disp('Not plotting...');
end
.
but when the user click on the button it return the asnwer like:
a =
2
.
or
.
a =
1
.
how do i hide this ans??
thx 🙂

Best Answer

Put a semi-colon behind menu line
a = menu ('Wanna plot....?','Yes','No');