フィルターのクリア

alarm for finishing running of a program

198 ビュー (過去 30 日間)
som
som 2012 年 1 月 27 日
編集済み: John D'Errico 2023 年 3 月 11 日
Hi all
I've written a program and it's so time-consuming. I want to write a command for the programe that alarm me the program runnning has been finished.
How can I do it?
thanks,
  1 件のコメント
avss matlb
avss matlb 2018 年 5 月 2 日
I am currently working on a fire detection project after detecting fire it sends mail but my video player or webcam stop working.Please, can anybody know how to solve this problem?

サインインしてコメントする。

採用された回答

John D'Errico
John D'Errico 2015 年 3 月 2 日
Way too late for an answer here, but my solution for really long running codes was to add this to the end of my long running codes.
load handel
sound(y,Fs)
  11 件のコメント
Erik Kruit
Erik Kruit 2021 年 11 月 19 日
編集済み: Erik Kruit 2021 年 11 月 19 日
Philipp really great!
laurent jalabert
laurent jalabert 2023 年 3 月 10 日
ah ah ah !!! so funny !

サインインしてコメントする。

その他の回答 (3 件)

Dr. Seis
Dr. Seis 2012 年 1 月 28 日
A simple way I use to get notified that processing had finished was to add a "beep" to the end of the program (I was usually in the other room watching TV, so it worked for me). Just bear in mind that the beep will either mean your code has finished =) or your code stopped with an error =(.
Edit
At the command line, type:
beep
If you do not hear a sound, type:
beep on
Then test to see if beep works by typing "beep" one more time. If that doesn't work, then make sure your speakers are on loud enough that you can hear it.
  4 件のコメント
som
som 2012 年 1 月 30 日
thanks for your help. I wrote 'beep on' and also set speakers on high volume, but I didn't hear any voice. my program is as followed:
clc; clear;
T=3 ; M=5 ;
for t=1:T
for i=1:M
for j=1:M
b{t}(i,j)=1/sqrt(2*pi*i)*exp(-1/(2*t)*(j-i)^2);
end
end
end
beep on
What can I do??
Dr. Seis
Dr. Seis 2012 年 1 月 30 日
"beep on" simply turns on the beep functionality (if it was off). Just in case you have beep turned off elsewhere, your last line should be:
beep on; beep;

サインインしてコメントする。


Jason Ross
Jason Ross 2012 年 1 月 27 日
編集済み: John Kelly 2015 年 3 月 2 日
You could create a function that plays the audio and call it at the end
Or you could have it send you an email at the end of processing:
If you search in the File Exchange for "Alarm" there are other implementations that throw up dialogs, etc.

Rutika Titre
Rutika Titre 2015 年 10 月 29 日
can anyone help to to get a sound of beep after detecting my face in camera. I have extracted all features my features are recognized I just want a beep sound as the face is detected how can i do that...plz any kind of help will be appreaciated...Thank you
  2 件のコメント
Walter Roberson
Walter Roberson 2015 年 10 月 29 日
Rutika Titre
Rutika Titre 2015 年 11 月 5 日
Thank You Sir.I got its solution. I had taken .wav file and I got the beep sound. Thank you Sir for your help.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by