annotate scripts/miscellaneous/flops.m @ 7712:a626db2e8a1c

view: get values from current axes if nargin == 0
author John W. Eaton <jwe@octave.org>
date Tue, 15 Apr 2008 16:30:09 -0400
parents a1dbe9d80eee
children 1bf0ce0930be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
1 ## Copyright (C) 1996, 1997, 1998, 2000, 2005, 2006, 2007 John W. Eaton
2313
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
2 ##
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
3 ## This file is part of Octave.
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
4 ##
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
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: 6555
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: 6555
diff changeset
8 ## your option) any later version.
2313
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
9 ##
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
13 ## General Public License for more details.
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
diff changeset
14 ##
5ca126254d15 [project @ 1996-07-11 21:25:22 by jwe]
jwe
parents: 2311
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: 6555
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: 6555
diff changeset
17 ## <http://www.gnu.org/licenses/>.
2070
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
18
3449
858695b3ed62 [project @ 2000-01-18 04:08:59 by jwe]
jwe
parents: 3174
diff changeset
19 ## -*- texinfo -*-
858695b3ed62 [project @ 2000-01-18 04:08:59 by jwe]
jwe
parents: 3174
diff changeset
20 ## @deftypefn {Function File} {} flops ()
6555
69e864d21c11 [project @ 2007-04-20 18:16:08 by jwe]
jwe
parents: 6046
diff changeset
21 ## This function is provided for @sc{Matlab} compatibility, but it doesn't
3449
858695b3ed62 [project @ 2000-01-18 04:08:59 by jwe]
jwe
parents: 3174
diff changeset
22 ## actually do anything.
858695b3ed62 [project @ 2000-01-18 04:08:59 by jwe]
jwe
parents: 3174
diff changeset
23 ## @end deftypefn
2070
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
24
2314
949ab8eba8bc [project @ 1996-07-12 03:58:02 by jwe]
jwe
parents: 2313
diff changeset
25 ## Author: jwe
949ab8eba8bc [project @ 1996-07-12 03:58:02 by jwe]
jwe
parents: 2313
diff changeset
26
2311
2b5788792cad [project @ 1996-07-11 20:18:38 by jwe]
jwe
parents: 2303
diff changeset
27 function retval = flops ()
2070
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
28
3174
390d5e396682 [project @ 1998-05-04 16:36:17 by jwe]
jwe
parents: 2847
diff changeset
29 if (nargin > 1)
6046
34f96dd5441b [project @ 2006-10-10 16:10:25 by jwe]
jwe
parents: 5307
diff changeset
30 print_usage ();
2070
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
31 endif
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
32
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
33 warning ("flops is a flop, always returning zero");
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
34
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
35 retval = 0;
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
36
a4c83ea14cc0 [project @ 1996-04-18 01:10:25 by jwe]
jwe
parents:
diff changeset
37 endfunction