annotate scripts/io/beep.m @ 14383:07c55bceca23 stable

Fix guarded_eval() subfunction in fminunc (bug #35534). * fminunc.m: Fix guarded_eval() subfunction in fminunc (bug #35534).
author Olaf Till <olaf.till@uni-jena.de>
date Wed, 15 Feb 2012 14:44:37 +0100
parents 72c96de7a403
children 1c89599167a6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14138
72c96de7a403 maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents: 13041
diff changeset
1 ## Copyright (C) 2003-2012 John W. Eaton
4263
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
2 ##
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
4 ##
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6567
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6567
diff changeset
8 ## your option) any later version.
4263
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
9 ##
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
14 ##
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6567
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6567
diff changeset
17 ## <http://www.gnu.org/licenses/>.
4263
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
18
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
19 ## -*- texinfo -*-
6567
e82cb026b893 [project @ 2007-04-24 20:40:23 by jwe]
jwe
parents: 6046
diff changeset
20 ## @deftypefn {Function File} {} beep ()
4293
977f977fb2c3 [project @ 2003-01-06 18:18:14 by jwe]
jwe
parents: 4268
diff changeset
21 ## Produce a beep from the speaker (or visual bell).
5642
2618a0750ae6 [project @ 2006-03-06 21:26:48 by jwe]
jwe
parents: 5307
diff changeset
22 ## @seealso{puts, fputs, printf, fprintf}
4263
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
23 ## @end deftypefn
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
24
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
25 ## Author: jwe
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
26
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
27 function beep ()
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
28
13041
e5a49b2f8225 codesprint: Single input validation test for beep.m
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
29 if (nargin != 0)
6046
34f96dd5441b [project @ 2006-10-10 16:10:25 by jwe]
jwe
parents: 5642
diff changeset
30 print_usage ();
4268
363d406ec86c [project @ 2003-01-03 15:55:01 by jwe]
jwe
parents: 4263
diff changeset
31 endif
4263
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
32
13041
e5a49b2f8225 codesprint: Single input validation test for beep.m
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
33 puts ("\a");
e5a49b2f8225 codesprint: Single input validation test for beep.m
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
34
4263
34b8cd8e6ef5 [project @ 2003-01-03 03:10:57 by jwe]
jwe
parents:
diff changeset
35 endfunction
13041
e5a49b2f8225 codesprint: Single input validation test for beep.m
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
36
e5a49b2f8225 codesprint: Single input validation test for beep.m
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
37
e5a49b2f8225 codesprint: Single input validation test for beep.m
Rik <octave@nomad.inbox5.com>
parents: 11523
diff changeset
38 %!error (beep (1))