annotate NEWS @ 2922:5d78f1ba95a8

[project @ 1997-05-02 04:50:54 by jwe]
author jwe
date Fri, 02 May 1997 04:50:54 +0000
parents c8e635ff1af4
children 1b219fa3c56a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2918
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
1 Summary of changes since version 2.0.5:
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
2 --------------------------------------
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
3
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
4 * New operators. Octave's parser now recognizes the following
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
5 operators: << >> += -= *= /= .+= .-= .*= ./= &= |= <<= >>=. So
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
6 far, there are only a few operations defined that actually use
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
7 them (this should change before 2.1 is released).
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
8
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
9 * New built-in data types:
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
10
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
11 logical:
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
12
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
13 A true value is represented by 1, and false value by 0.
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
14 Comparison operations like <, <=, ==, >, >=, and != now return
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
15 logical values. Indexing operations that use zero-one style
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
16 indexing must now use logical values. You can use the new
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
17 function logical() to convert a numeric value to a logical
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
18 value. This avoids the need for the built-in variable
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
19 `prefer_zero_one_indexing', so it has been removed. Logical
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
20 values are automatically converted to numeric values where
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
21 appropriate.
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
22
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
23 file:
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
24
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
25 A file object represents an open Octave stream object. The
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
26 fopen function now returns a file object instead of an integer.
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
27 File objects can be converted to integers automatically, and the
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
28 other functions that work with file ids still work with
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
29 integers, so this change should be backward compatible.
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
30
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
31 The binary left-shift operator `<<' has been defined to work as
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
32 in C++ for file objects and built-in types. For example,
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
33
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
34 my_stream = fopen ("foo", "w");
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
35 my_stream << "x = " << pi << " marks the spot\n";
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
36
2922
5d78f1ba95a8 [project @ 1997-05-02 04:50:54 by jwe]
jwe
parents: 2918
diff changeset
37 writes `x = 3.1416 marks the spot' in the file foo.
2918
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
38
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
39 The built-in variables stdin, stdout, and stderr are now also
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
40 file objects instead of integers.
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
41
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
42 list:
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
43
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
44 A list is an array of Octave objects. It can be indexed using
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
45 the normal indexing operator. For example,
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
46
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
47 x = make_list ([1,2;3,4], 1, "foo");
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
48 stdout << x(2) << "\n"
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
49 1
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
50 stdout << x;
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
51 (
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
52 [1] =
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
53
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
54 1 2
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
55 3 4
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
56
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
57 [2] = 1
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
58 [3] = foo
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
59 )
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
60
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
61 There is currently no special syntax for creating lists; you
c8e635ff1af4 [project @ 1997-04-30 21:41:08 by jwe]
jwe
parents: 2853
diff changeset
62 must use the make_list function.
2845
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
63
2852
2284b2652028 [project @ 1997-03-28 22:04:30 by jwe]
jwe
parents: 2851
diff changeset
64 * Commas in global statements are no longer special. They are now
2284b2652028 [project @ 1997-03-28 22:04:30 by jwe]
jwe
parents: 2851
diff changeset
65 treated as command separators. This removes a conflict in the
2853
ff4ee9ad942a [project @ 1997-03-28 22:21:25 by jwe]
jwe
parents: 2852
diff changeset
66 grammar and is consistent with the way Matlab behaves. The
ff4ee9ad942a [project @ 1997-03-28 22:21:25 by jwe]
jwe
parents: 2852
diff changeset
67 variable `warn_comma_in_global_decl' has been eliminated.
2852
2284b2652028 [project @ 1997-03-28 22:04:30 by jwe]
jwe
parents: 2851
diff changeset
68
2845
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
69 * It is now possible to declare static variables that retain their
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
70 values across function calls. For example,
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
71
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
72 function ncall = f () static n = 0; ncall = ++n; endfunction
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
73
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
74 defines a function that returns the number of times that it has
b11fb5e85dc5 [project @ 1997-03-26 23:04:05 by jwe]
jwe
parents: 2831
diff changeset
75 been called.
2800
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
76
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
77 * Functions like quad, fsolve, and lsode can take either a function
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
78 name or a simple function body as a string. For example,
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
79
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
80 quad ("sqrt (x)", 0, 1)
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
81
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
82 is equivalent to
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
83
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
84 function y = f (x) y = sqrt (x); endfunction
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
85 quad ("f", 0, 1)
9aeba8e006a4 [project @ 1997-03-09 09:50:20 by jwe]
jwe
parents: 2767
diff changeset
86
2815
33486d9e2d00 [project @ 1997-03-14 08:24:46 by jwe]
jwe
parents: 2800
diff changeset
87 * If the argument to eig() is symmetric, Octave uses the specialized
33486d9e2d00 [project @ 1997-03-14 08:24:46 by jwe]
jwe
parents: 2800
diff changeset
88 Lapack subroutine for symmetric matrices for a significant
33486d9e2d00 [project @ 1997-03-14 08:24:46 by jwe]
jwe
parents: 2800
diff changeset
89 increase in performance.
33486d9e2d00 [project @ 1997-03-14 08:24:46 by jwe]
jwe
parents: 2800
diff changeset
90
2851
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
91 * If the argument to lsode that names the user-supplied function is
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
92 a 2-element string array, the second element is taken as the name
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
93 of the Jacobian function. The named function should have the
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
94 following form:
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
95
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
96 JAC = f (X, T)
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
97
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
98 where JAC is the Jacobian matrix of partial derivatives of the
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
99 right-hand-side functions that define the set of differential
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
100 equations with respect to the state vector X.
b960bd6cbfdf [project @ 1997-03-28 21:44:22 by jwe]
jwe
parents: 2845
diff changeset
101
2745
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
102 Summary of changes for version 2.0.5:
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
103 ------------------------------------
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
104
2767
c05ed7ef4c1a [project @ 1997-03-01 02:55:05 by jwe]
jwe
parents: 2745
diff changeset
105 * A `switch' statement is now available. See the Statements chapter
c05ed7ef4c1a [project @ 1997-03-01 02:55:05 by jwe]
jwe
parents: 2745
diff changeset
106 in the manual for details.
c05ed7ef4c1a [project @ 1997-03-01 02:55:05 by jwe]
jwe
parents: 2745
diff changeset
107
2745
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
108 * Commands like ls, save, and cd may now also be used as formal
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
109 parameters for functions.
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
110
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
111 * More tests.
76411ce43c05 [project @ 1997-02-26 07:52:14 by jwe]
jwe
parents: 2704
diff changeset
112
2702
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
113 Summary of changes for version 2.0.4:
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
114 ------------------------------------
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
115
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
116 * It is now possible to use commands like ls, save, and cd as simple
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
117 variable names. They still cannot be used as formal parameters
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
118 for functions, or as the names of structure variables. Failed
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
119 assignments leave them undefined (you can recover the orginal
2704
261befb7f938 [project @ 1997-02-19 19:37:10 by jwe]
jwe
parents: 2702
diff changeset
120 function definition using clear).
261befb7f938 [project @ 1997-02-19 19:37:10 by jwe]
jwe
parents: 2702
diff changeset
121
261befb7f938 [project @ 1997-02-19 19:37:10 by jwe]
jwe
parents: 2702
diff changeset
122 * Is is now possible to invoke commands like ls, save, and cd as
261befb7f938 [project @ 1997-02-19 19:37:10 by jwe]
jwe
parents: 2702
diff changeset
123 normal functions (for example, load ("foo", "x", "y", "z")).
2702
7a820bb7f406 [project @ 1997-02-19 19:22:34 by jwe]
jwe
parents: 2683
diff changeset
124
2666
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
125 Summary of changes for version 2.0.3:
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
126 ------------------------------------
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
127
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
128 * The manual has been completely revised and now corresponds much
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
129 more closely to the features of the current version.
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
130
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
131 * The return value for assignment expressions is now the RHS since
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
132 that is more consistent with the way other programming languages
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
133 work. However, Octave still prints the entire LHS value so that
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
134
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
135 x = zeros (1, 2);
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
136 x(2) = 1
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
137
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
138 still prints
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
139
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
140 x =
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
141
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
142 0 1
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
143
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
144 but an assignment like
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
145
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
146 z = x(2) = 1
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
147
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
148 sets z to 1 (not [ 0, 1 ] as in previous versions of Octave).
aa519c3a0523 [project @ 1997-02-09 00:11:22 by jwe]
jwe
parents: 2634
diff changeset
149
2683
8a4f3b3bb8d5 [project @ 1997-02-14 20:38:55 by jwe]
jwe
parents: 2666
diff changeset
150 * It is now much easier to make binary distributions. See the
8a4f3b3bb8d5 [project @ 1997-02-14 20:38:55 by jwe]
jwe
parents: 2666
diff changeset
151 Binary Distributions section of the manual for more details.
8a4f3b3bb8d5 [project @ 1997-02-14 20:38:55 by jwe]
jwe
parents: 2666
diff changeset
152
2615
ad44ecafabe4 [project @ 1997-01-21 04:13:13 by jwe]
jwe
parents: 2613
diff changeset
153 Summary of changes for version 2.0.2:
2613
5bcee07be597 [project @ 1997-01-21 03:52:08 by jwe]
jwe
parents: 2581
diff changeset
154 ------------------------------------
5bcee07be597 [project @ 1997-01-21 03:52:08 by jwe]
jwe
parents: 2581
diff changeset
155
2621
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
156 * Octave now stops executing commands from a script file if an error
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
157 is encountered.
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
158
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
159 * The return, and break commands now cause Octave to quit executing
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
160 commands from script files. When used in invalid contexts, the
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
161 break, continue, and return commands are now simply ignored
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
162 instead of producing parse errors.
337a09dd1c06 [project @ 1997-01-24 21:49:41 by jwe]
jwe
parents: 2615
diff changeset
163
2613
5bcee07be597 [project @ 1997-01-21 03:52:08 by jwe]
jwe
parents: 2581
diff changeset
164 * size ("") is now [0, 0].
5bcee07be597 [project @ 1997-01-21 03:52:08 by jwe]
jwe
parents: 2581
diff changeset
165
2634
eebc31f84a4d [project @ 1997-01-27 21:53:18 by jwe]
jwe
parents: 2621
diff changeset
166 * New functions:
eebc31f84a4d [project @ 1997-01-27 21:53:18 by jwe]
jwe
parents: 2621
diff changeset
167
eebc31f84a4d [project @ 1997-01-27 21:53:18 by jwe]
jwe
parents: 2621
diff changeset
168 sleep -- pause execution for a specified number of seconds
eebc31f84a4d [project @ 1997-01-27 21:53:18 by jwe]
jwe
parents: 2621
diff changeset
169 usleep -- pause execution for a specified number of microseconds
eebc31f84a4d [project @ 1997-01-27 21:53:18 by jwe]
jwe
parents: 2621
diff changeset
170
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
171 Summary of changes for version 2.0:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
172 ----------------------------------
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
173
2520
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
174 * The set and show commands for setting and displaying gnuplot
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
175 parameters have been replaced by gset and gshow. This change will
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
176 probably break lots of things, but it is necessary to allow for
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
177 compatibility with the Matlab graphics and GUI commands in a
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
178 future version of Octave. (For now, the old set and show commands
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
179 do work, but they print an annoying warning message to try to get
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
180 people to switch to using gset.)
a034dcdbc282 [project @ 1996-11-15 04:57:21 by jwe]
jwe
parents: 2511
diff changeset
181
2581
6eb163dafaca [project @ 1996-12-10 07:10:05 by jwe]
jwe
parents: 2580
diff changeset
182 * Octave has been mostly ported to Windows NT and Windows 95 using
6eb163dafaca [project @ 1996-12-10 07:10:05 by jwe]
jwe
parents: 2580
diff changeset
183 the beta 17 release of the Cygnus GNU-WIN32 tools. Not everything
6eb163dafaca [project @ 1996-12-10 07:10:05 by jwe]
jwe
parents: 2580
diff changeset
184 works, but it is usable. See the file README.WINDOWS for more
6eb163dafaca [project @ 1996-12-10 07:10:05 by jwe]
jwe
parents: 2580
diff changeset
185 information.
6eb163dafaca [project @ 1996-12-10 07:10:05 by jwe]
jwe
parents: 2580
diff changeset
186
2580
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
187 * Dynamic linking works on more systems using dlopen() and friends
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
188 (most modern Unix systems) or shl_load() and friends (HP/UX
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
189 systems). A simple example is provided in examples/hello.cc.
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
190 For this feature to work, you must configure Octave with
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
191 --enable-shared. You may also need to have a shared-library
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
192 version of libg++ and libstdc++.
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
193
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
194 * New data types can be added to Octave by writing a C++ class. On
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
195 systems that support dynamic linking, new data types can be added
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
196 to an already running Octave binary. A simple example appears in
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
197 the file examples/make_int.cc. Other examples are the standard
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
198 Octave data types defined in the files src/ov*.{h,cc} and
2580
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2554
diff changeset
199 src/op-*.cc.
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
200
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
201 * The configure option --enable-bounds-check turns on bounds
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
202 checking on element references for Octave's internal array and
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
203 matrix classes. It's enabled by default. To disable this
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
204 feature, configure Octave with --disable-bounds-check.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
205
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
206 * The C-style I/O functions (fopen, fprintf, etc.) have been
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
207 rewritten to be more compatible with Matlab. The fputs function
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
208 has also been added. Usage of the *printf functions that was
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
209 allowed in previous versions of Octave should still work.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
210 However, there is no way to make the new versions of the *scanf
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
211 functions compatible with Matlab *and* previous versions of
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
212 Octave. An optional argument to the *scanf functions is now
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
213 available to make them behave in a way that is compatible with
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
214 previous versions of Octave.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
215
2511
9b0dd36714eb [project @ 1996-11-14 02:57:33 by jwe]
jwe
parents: 2496
diff changeset
216 * Octave can now read files that contain columns of numbers only,
9b0dd36714eb [project @ 1996-11-14 02:57:33 by jwe]
jwe
parents: 2496
diff changeset
217 with no header information. The name of the loaded variable is
9b0dd36714eb [project @ 1996-11-14 02:57:33 by jwe]
jwe
parents: 2496
diff changeset
218 constructed from the file name. Each line in the file must have
9b0dd36714eb [project @ 1996-11-14 02:57:33 by jwe]
jwe
parents: 2496
diff changeset
219 the same number of elements.
9b0dd36714eb [project @ 1996-11-14 02:57:33 by jwe]
jwe
parents: 2496
diff changeset
220
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
221 * The interface to the pager has changed. The new built-in variable
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
222 `page_output_immediately' controls when Octave sends output to the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
223 pager. If it is nonzero, Octave sends output to the pager as soon
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
224 as it is available. Otherwise, Octave buffers its output and
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
225 waits until just before the prompt is printed to flush it to the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
226 pager.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
227
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
228 * Expressions of the form
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
229
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
230 A(i,j) = x
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
231
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
232 where X is a scalar and the indices i and j define a matrix of
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
233 elements now work as you would expect rather than giving an error.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
234 I am told that this is how Matlab 5.0 will behave when it is
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
235 released.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
236
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
237 * Indexing of character strings now works.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
238
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
239 * The echo command has been implemented.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
240
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
241 * The document command is now a regular function.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
242
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
243 * New method for handling errors:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
244
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
245 try
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
246 BODY
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
247 catch
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
248 CLEANUP
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
249 end_try_catch
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
250
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
251 Where BODY and CLEANUP are both optional and may contain any
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
252 Octave expressions or commands. The statements in CLEANUP are
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
253 only executed if an error occurs in BODY.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
254
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
255 No warnings or error messages are printed while BODY is
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
256 executing. If an error does occur during the execution of BODY,
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
257 CLEANUP can access the text of the message that would have been
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
258 printed in the builtin constant __error_text__. This is the same
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
259 as eval (TRY, CATCH) (which may now also use __error_text__) but
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
260 it is more efficient since the commands do not need to be parsed
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
261 each time the TRY and CATCH statements are evaluated.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
262
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
263 * Octave no longer parses the help command by grabbing everything
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
264 after the keyword `help' until a newline character is read. To
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
265 get help for `;' or `,', now, you need to use the command
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
266 `help semicolon' or `help comma'.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
267
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
268 * Octave's parser now does some simple constant folding. This means
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
269 that expressions like 3*i are now evaluated only once, when a
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
270 function is compiled, and the right hand side of expressions like
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
271 a = [1,2;3,4] are treated as true matrix constants rather than
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
272 lists of elements which must be evaluated each time they are
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
273 needed.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
274
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
275 * Built-in variables that can take values of "true" and "false" can
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
276 now also be set to any nonzero scalar value to indicate "true",
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
277 and 0 to indicate "false".
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
278
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
279 * New built-in variables `history_file', `history_size', and
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
280 `saving_history'.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
281
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
282 * New built-in variable `string_fill_char' specifies the character
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
283 to fill with when creating arrays of strings.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
284
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
285 * If the new built-in variable `gnuplot_has_frames' is nonzero,
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
286 Octave assumes that your copy of gnuplot includes support for
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
287 multiple plot windows when using X11.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
288
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
289 If the new built-in variable `gnuplot_has_multiplot' is nonzero,
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
290 Octave assumes that your copy of gnuplot has the multiplot support
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
291 that is included in recent 3.6beta releases.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
292
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
293 The initial values of these variables are determined by configure,
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
294 but can be changed in your startup script or at the command line
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
295 in case configure got it wrong, or if you upgrade your gnuplot
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
296 installation.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
297
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
298 * The new plot function `figure' allows multiple plot windows when
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
299 using newer versions of gnuplot with X11.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
300
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
301 * Octave now notices when the plotter has exited unexpectedly.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
302
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
303 * New built-in variable `warn_missing_semicolon'. If nonzero, Octave
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
304 will warn when statements in function definitions don't end in
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
305 semicolons. The default value is 0.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
306
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
307 * Octave now attempts to continue after floating point exceptions
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
308 or out-of-memory errors.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
309
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
310 * If Octave crashes, it now attempts to save all user-defined
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
311 variables in a file named `octave-core' in the current directory
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
312 before exiting.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
313
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
314 * It is now possible to get the values of individual option settings
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
315 for the dassl, fsolve, lsode, npsol, qpsol, and quad functions
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
316 using commands like
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
317
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
318 dassl_reltol = dassl_options ("relative tolerance");
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
319
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
320 * The svd() function no longer computes the left and right singular
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
321 matrices unnecessarily. This can significantly improve
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
322 performance for large matrices if you are just looking for the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
323 singular values.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
324
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
325 * The filter() function is now a built-in function.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
326
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
327 * New function randn() returns a pseudo-random number from a normal
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
328 distribution. The rand() and randn() functions have separate
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
329 seeds and generators.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
330
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
331 * Octave's command-line arguments are now available in the built-in
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
332 variable `argv'. The program name is also available in the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
333 variables `program_invocation_name' and `program_name'. If
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
334 executing a script from the command line (e.g., octave foo.m) or
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
335 using the `#! /bin/octave' hack, the program name is set to the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
336 name of the script.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
337
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
338 * New built-in variable `completion_append_char' used as the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
339 character to append to successful command-line completion
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
340 attempts. The default is " " (a single space).
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
341
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
342 * Octave now uses a modified copy of the readline library from
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
343 version 1.14.5 of GNU bash.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
344
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
345 * In prompt strings, `\H' expands to the whole host name.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
346
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
347 * New built-in variable `beep_on_error'. If nonzero, Octave will try
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
348 to ring your terminal's bell before printing an error message.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
349 The default value is 0.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
350
2554
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
351 * For functions defined from files, the type command now prints the
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
352 text of the file. You can still get the text reconstructed from
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
353 the parse tree by using the new option -t (-transformed).
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
354
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
355 * New command-line argument --traditional sets the following
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
356 preference variables for compatibility with Matlab:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
357
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
358 PS1 = ">> "
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
359 PS2 = ""
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
360 beep_on_error = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
361 default_save_format = "mat-binary"
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
362 define_all_return_values = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
363 do_fortran_indexing = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
364 empty_list_elements_ok = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
365 implicit_str_to_num_ok = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
366 ok_to_lose_imaginary_part = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
367 page_screen_output = 0
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
368 prefer_column_vectors = 0
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
369 prefer_zero_one_indexing = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
370 print_empty_dimensions = 0
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
371 treat_neg_dim_as_zero = 1
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
372 warn_function_name_clash = 0
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
373 whitespace_in_literal_matrix = "traditional"
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
374
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
375 * New functions:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
376
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
377 readdir -- returns names of files in directory as array of strings
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
378 mkdir -- create a directory
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
379 rmdir -- remove a directory
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
380 rename -- rename a file
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
381 unlink -- delete a file
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
382 umask -- set permission mask for file creation
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
383 stat -- get information about a file
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
384 lstat -- get information about a symbolic link
2496
9823f8bfd1a5 [project @ 1996-11-11 03:17:10 by jwe]
jwe
parents: 2484
diff changeset
385 glob -- perform filename globbing
9823f8bfd1a5 [project @ 1996-11-11 03:17:10 by jwe]
jwe
parents: 2484
diff changeset
386 fnmatch -- match strings with filename globbing patterns
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
387 more -- turn the pager on or off
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
388 gammaln -- alias for lgamma
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
389
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
390 * New audio functions from Andreas Weingessel
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
391 <Andreas.Weingessel@ci.tuwien.ac.at>.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
392
2458
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
393 lin2mu -- linear to mu-law encoding
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
394 loadaudio -- load an audio file to a vector
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
395 mu2lin -- mu-law to linear encoding
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
396 playaudio -- play an audio file
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
397 record -- record sound and store in vector
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
398 saveaudio -- save a vector as an audio file
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
399 setaudio -- executes mixer shell command
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
400
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
401 * New plotting functions from Vinayak Dutt. Ones dealing with
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
402 multiple plots on one page require features from gnuplot 3.6beta
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
403 (or later).
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
404
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
405 bottom_title -- put title at the bottom of the plot
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
406 mplot -- multiplot version of plot
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
407 multiplot -- switch multiple-plot mode on or off
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
408 oneplot -- return to one plot per page
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
409 plot_border -- put a border around plots
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
410 subplot -- position multiple plots on a single page
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
411 subwindow -- set subwindow position for next plot
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
412 top_title -- put title at the top of the plot
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
413 zlabel -- put a label on the z-axis
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
414
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
415 * New string functions
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
416
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
417 bin2dec -- convert a string of ones and zeros to an integer
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
418 blanks -- create a string of blanks
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
419 deblank -- delete trailing blanks
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
420 dec2bin -- convert an integer to a string of ones and zeros
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
421 dec2hex -- convert an integer to a hexadecimal string
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
422 findstr -- locate occurrences of one string in another
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
423 hex2dec -- convert a hexadecimal string to an integer
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
424 index -- return position of first occurrence a string in another
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
425 rindex -- return position of last occurrence a string in another
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
426 split -- divide one string into pieces separated by another
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
427 str2mat -- create a string matrix from a list of strings
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
428 strrep -- replace substrings in a string
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
429 substr -- extract a substring
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
430
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
431 The following functions return a matrix of ones and zeros.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
432 Elements that are nonzero indicate that the condition was true for
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
433 the corresponding character in the string array.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
434
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
435 isalnum -- letter or a digit
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
436 isalpha -- letter
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
437 isascii -- ascii
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
438 iscntrl -- control character
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
439 isdigit -- digit
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
440 isgraph -- printable (but not space character)
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
441 islower -- lower case
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
442 isprint -- printable (including space character)
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
443 ispunct -- punctuation
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
444 isspace -- whitespace
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
445 isupper -- upper case
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
446 isxdigit -- hexadecimal digit
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
447
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
448 These functions return new strings.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
449
2458
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
450 tolower -- convert to lower case
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
451 toupper -- convert to upper case
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
453 * New function, fgetl. Both fgetl and fgets accept an optional
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
454 second argument that specifies a maximum number of characters to
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
455 read, and the function fgets is now compatible with Matlab.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
456
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
457 * Printing in hexadecimal format now works (format hex). It is also
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
458 possible to print the internal bit representation of a value
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
459 (format bit). Note that these formats are only implemented for
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
460 numeric values.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
461
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
462 * Additional structure features:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
463
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
464 -- Name completion now works for structures.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
465
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
466 -- Values and names of structure elements are now printed by
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
467 default. The new built-in variable `struct_levels_to_print'
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
468 controls the depth of nested structures to print. The default
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
469 value is 2.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
470
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
471 -- New functions:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
472
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
473 struct_contains (S, NAME) -- returns 1 if S is a structure with
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
474 element NAME; otherwise returns 0.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
475
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
476 struct_elements (S) -- returns the names of all elements
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
477 of structure S in an array of strings.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
478
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
479 * New io/subprocess functions:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
480
2458
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
481 fputs -- write a string to a file with no formatting
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
482 popen2 -- start a subprocess with 2-way communication
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
483 mkfifo -- create a FIFO special file
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
484 popen -- open a pipe to a subprocess
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
485 pclose -- close a pipe from a subprocess
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
486 waitpid -- check the status of or wait for subprocesses
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
487
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
488 * New time functions:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
489
2458
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
490 asctime -- format time structure according to local format
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
491 ctime -- equivalent to `asctime (localtime (TMSTRUCT))'
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
492 gmtime -- return time structure corresponding to UTC
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
493 localtime -- return time structure corresponding to local time zone
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
494 strftime -- print given time structure using specified format
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
495 time -- return current time
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
496
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
497 The `clock' and `date' functions are now implemented in M-files
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
498 using these basic functions.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
499
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
500 * Access to additional Unix system calls:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
501
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
502 dup2 -- duplicate a file descriptor
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
503 exec -- replace current process with a new process
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
504 fcntl -- control open file descriptors
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
505 fork -- create a copy of the current process
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
506 getpgrp -- return the process group id of the current process
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
507 getpid -- return the process id of the current process
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
508 getppid -- return the process id of the parent process
2475
1d7925d6bede [project @ 1996-11-07 04:36:00 by jwe]
jwe
parents: 2473
diff changeset
509 getuid -- return the real user id of the current process
1d7925d6bede [project @ 1996-11-07 04:36:00 by jwe]
jwe
parents: 2473
diff changeset
510 getgid -- return the real group id of the current process
1d7925d6bede [project @ 1996-11-07 04:36:00 by jwe]
jwe
parents: 2473
diff changeset
511 geteuid -- return the effective user id of the current process
1d7925d6bede [project @ 1996-11-07 04:36:00 by jwe]
jwe
parents: 2473
diff changeset
512 getegid -- return the effective group id of the current process
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
513 pipe -- create an interprocess channel
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
514
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
515 * Other new functions:
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
516
2554
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
517 commutation_matrix -- compute special matrix form
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
518 duplication_matrix -- compute special matrix form
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
519 common_size.m -- bring arguments to a common size
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
520 completion_matches -- perform command completion on string
2458
d07a5d0b57e2 [project @ 1996-11-03 03:25:18 by jwe]
jwe
parents: 2452
diff changeset
521 tilde_expand -- perform tilde expansion on string
2554
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
522
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
523 meshgrid -- compatible with Matlab's meshgrid function
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
524 tmpnam -- replaces octave_tmp_file_name
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
525 atexit -- register functions to be called when Octave exits
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
526 putenv -- define an environment variable
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
527 bincoeff -- compute binomial coefficients
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
528 nextpow2 -- compute the next power of 2 greater than a number
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
529 detrend -- remove a best fit polynomial from data
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
530 erfinv -- inverse error function
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
531 shift -- perform a circular shift on the elements of a matrix
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
532 pow2 -- compute 2 .^ x
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
533 log2 -- compute base 2 logarithms
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
534 diff -- compute differences of matrix elements
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
535 vech -- stack columns of a matrix below the diagonal
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
536 vec -- stack columns of a matrix to form a vector
f7e3d23f0a8f [project @ 1996-11-21 01:41:57 by jwe]
jwe
parents: 2520
diff changeset
537 xor -- compute exclusive or
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
538
2459
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
539 * Functions for getting info from the password database on Unix systems:
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
540
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
541 getpwent -- read entry from password-file stream, opening if necessary
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
542 getpwuid -- search for password entry with matching user ID
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
543 getpwnam -- search for password entry with matching username
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
544 setpwent -- rewind the password-file stream
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
545 endpwent -- close the password-file stream
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
546
2484
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
547 * Functions for getting info from the group database on Unix systems:
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
548
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
549 getgrent -- read entry from group-file stream, opening if necessary
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
550 getgrgid -- search for group entry with matching group ID
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
551 getgrnam -- search for group entry with matching group name
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
552 setgrent -- rewind the pgroup-file stream
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
553 endgrent -- close the group-file stream
ccaffe93c32f [project @ 1996-11-07 23:24:46 by jwe]
jwe
parents: 2475
diff changeset
554
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
555 * The New function octave_config_info returns a structure containing
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
556 information about how Octave was configured and compiled.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
557
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
558 * New function getrusage returns a structure containing system
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
559 resource usage statistics. The `cputime' function is now defined
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
560 in an M-file using getrusage.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
561
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
562 * The info reader is now a separate binary that runs as a
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
563 subprocess. You still need the info reader distributed with
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
564 Octave though, because there are some new command-line arguments
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
565 that are not yet available in the public release of Info.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
566
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
567 * There is a new built-in variable, INFO_PROGRAM, which is used as
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
568 the name of the info program to run. Its initial value is
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
569 $OCTAVE_HOME/lib/octave/VERSION/exec/ARCH/info, but that value can
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
570 be overridden by the environment variable OCTAVE_INFO_PROGRAM, or
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
571 the command line argument --info-program NAME, or by setting the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
572 value of INFO_PROGRAM in a startup script.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
573
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
574 * There is a new built-in variable, EXEC_PATH, which is used as
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
575 the list of directories to search when executing subprograms. Its
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
576 initial value is taken from the environment variable
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
577 OCTAVE_EXEC_PATH (if it exists) or PATH, but that value can be
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
578 overridden by the the command line argument --exec-path PATH, or
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
579 by setting the value of EXEC_PATH in a startup script. If the
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
580 EXEC_PATH begins (ends) with a colon, the directories
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
581 $OCTAVE_HOME/lib/octave/VERSION/exec/ARCH and $OCTAVE_HOME/bin are
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
582 prepended (appended) to EXEC_PATH (if you don't specify a value
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
583 for EXEC_PATH explicitly, these special directories are prepended
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
584 to your PATH).
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
585
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
586 * If it is present, Octave will now use an `ls-R' database file to
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
587 speed up recursive path searching. Octave looks for a file called
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
588 ls-R in the directory specified by the environment variable
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
589 OCTAVE_DB_DIR. If that is not set but the environment variable
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
590 OCTAVE_HOME is set, Octave looks in $OCTAVE_HOME/lib/octave.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
591 Otherwise, Octave looks in the directory $datadir/octave (normally
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
592 /usr/local/lib/octave).
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
593
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
594 * New examples directory.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
595
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
596 * There is a new script, mkoctfile, that can be used to create .oct
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
597 files suitable for dynamic linking.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
598
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
599 * Many more bug fixes.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
600
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
601 * ChangeLogs are now kept in each subdirectory.
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
602
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
603 See NEWS.1 for old news.