Stop process and close plot with keyboard
이전 댓글 표시
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
Walter Roberson
2012년 8월 10일
Which "process" is to be stopped ?
Matt Kindig
2012년 8월 10일
Maybe pause() is what you want?
doc pause
Emmanuelle
2012년 8월 13일
Azzi Abdelmalek
2012년 8월 13일
do you mean you want to interrupt the plot?
답변 (1개)
per isakson
2012년 8월 13일
0 개 추천
Maybe including the function, keyboard, in your code would help you achieve the required functionality.
카테고리
도움말 센터 및 File Exchange에서 Desktop에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!