going next command after specified time

3 Ansichten (letzte 30 Tage)
mohammad
mohammad am 1 Sep. 2011
does anyone know, is there this capability in MATLAB? : when i run a m-file, it asks some questions for example it asks: 'if you want to plot type 1 and enter' then until i don't enter 1, not going next command line and stay in this question. but i need displays countdown and if i didn't enter 1, then after finishing time, automatically goes next command.
thanks

Akzeptierte Antwort

Grzegorz Knor
Grzegorz Knor am 1 Sep. 2011
If you use the INPUT function you can try replace it with the WAITINPUT:
Grzegorz
  8 Kommentare
Grzegorz Knor
Grzegorz Knor am 2 Sep. 2011
I have no idea, because your code in my Matlab (7.10.0.499 - R2010a on Linux 2.6.38-11-generic-pae) works seamlessly.
mohammad
mohammad am 2 Sep. 2011
thanks a lot Grzegirz for your all aids

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Performance and Memory finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by