hidding ans in menu

2 次查看(过去 30 天)
lucas
lucas 2013-11-1
回答: lucas 2013-11-1
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 :)

采纳的回答

Honglei Chen
Honglei Chen 2013-11-1
编辑:Honglei Chen 2013-11-1
Put a semi-colon behind menu line
a = menu ('Wanna plot....?','Yes','No');

更多回答(1 个)

lucas
lucas 2013-11-1
awww. of course... ty

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by