Azzera filtri
Azzera filtri

hidding ans in menu

2 visualizzazioni (ultimi 30 giorni)
lucas
lucas il 1 Nov 2013
Risposto: lucas il 1 Nov 2013
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 :)

Risposta accettata

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

Più risposte (1)

lucas
lucas il 1 Nov 2013
awww. of course... ty

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by