Hi guys, I'd like to show a GUI in which the user can select "yes" or "not" to reply to the answer "Do yo want to plot the 3D trajectory?". So, based on the answer, the part of code after the question is exectuded or not.
Is it possible? If yes, how?
Thanks in advance!

 Akzeptierte Antwort

Matt J
Matt J am 20 Jun. 2021
Bearbeitet: Matt J am 20 Jun. 2021
For example,
if inputdlg('Proceed? [Y/N]')=="N"
break
end
There is also uiconfirm,

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2021a

Gefragt:

am 20 Jun. 2021

Kommentiert:

am 20 Jun. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by