Stop process and close plot with keyboard
Ältere Kommentare anzeigen
Hi everyone,
This is part of my code.
plot(x, sensiv_graf2, 'r');
title ('Sensitivity average')
xlabel(Wavelength (nm)')
load value123.txt
xm= value123(:,1);
ym= value123(:,2);
I need that, after the plot, pressing one button on keyboard stop the process, close plot and then continue loading the texts. I've tried with 'stop', 'close' but it doesn't work at all.
How can I do it? thanks in advance!
4 Kommentare
Walter Roberson
am 10 Aug. 2012
Which "process" is to be stopped ?
Matt Kindig
am 10 Aug. 2012
Maybe pause() is what you want?
doc pause
Emmanuelle
am 13 Aug. 2012
Azzi Abdelmalek
am 13 Aug. 2012
do you mean you want to interrupt the plot?
Antworten (1)
per isakson
am 13 Aug. 2012
0 Stimmen
Maybe including the function, keyboard, in your code would help you achieve the required functionality.
Kategorien
Mehr zu Desktop finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!