annotate WWW/NEWS-1.html @ 6469:a848b846cb3a ss-2-9-10

[project @ 2007-03-27 18:42:11 by jwe]
author jwe
date Tue, 27 Mar 2007 18:42:11 +0000
parents b2ce28713791
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2590
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1 <!doctype html public "-//IETF//DTD HTML Strict//EN">
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
2 <html>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
3 <head>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
4 <title> Changes in Octave version 1 </title>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
5 </head>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
6
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
7 <body>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
8 <h1> News for Octave Version 1 </h1>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
9 <hr>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
10
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
11 <h2>Summary of changes for version 1.1.1</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
12
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
13 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
14 * New built-in variables, default_return_value and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
15 define_all_return_values.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
16
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
17 If define_all_return_values is set to "false", Octave does not do
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
18 anything special for return values that are left undefined, and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
19 you will get an error message if you try to use them. For
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
20 example, if the function
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
21
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
22 function [x, y] = f ()
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
23 y = 1;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
24 endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
25
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
26 is called as
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
27
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
28 octave:13> [a, b] = f ()
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
29
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
30 Octave will print an error message for the attempt to assign an
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
31 undefined value to `a'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
32
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
33 This is incompatible with Matlab, which will define the return
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
34 variable `x' to be the empty matrix. To get the Matlab-like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
35 behavior, you can set the variable define_all_return_values to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
36 "true" (the default is "false") and default_return_value to `[]'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
37 (the default). Then, any return values that remain undefined when
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
38 the function returns will be initialized to `[]'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
39
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
40 If the function is called without explicitly asking for an output,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
41 it will succeed. This behavior is compatible and unchanged from
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
42 previous versions of Octave.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
43
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
44 * New built-in variable suppress_verbose_help_message. If set to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
45 "true", Octave will not add additional help information to the end
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
46 of the output from the help command and usage messages for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
47 built-in commands. The default value is "false".
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
48
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
49 * New built-in variable PS4 is used as the prefix of echoed input
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
50 (enabled with the --echo-input (-x) option).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
51
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
52 * The function size() now accepts an optional second argument.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
53
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
54 * Output from `save - ...' now goes through the pager.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
55
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
56 * The break statement may also be used to exit a function, for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
57 compatibility with Matlab.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
58
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
59 * The directory tree for installing Octave is now closer to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
60 conforming with the current GNU standards.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
61
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
62 * More bug fixes.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
63 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
64
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
65 <h2>Summary of changes for version 1.1.0</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
66
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
67 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
68 * Octave now requires g++ 2.6.3 or later. This change is necessary
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
69 to make template instantiations cleaner, and to avoid having to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
70 have special cases in the code for earlier versions of gcc.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
71
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
72 * A new data structure type has been added. The implementation uses
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
73 an associative array with indices limited to strings, but the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
74 syntax is more like C-style structures. here are some examples of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
75 using it.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
76
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
77 Elements of structures can be of any type, including structures:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
78
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
79 octave:1> x.a = 1;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
80 octave:2> x.b = [1, 2; 3, 4];
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
81 octave:3> x.c = "string";
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
82 octave:4> x
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
83 x =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
84
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
85 <structure: a b c>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
86
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
87 octave:5> x.a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
88 x.a = 1
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
89 octave:6> x.b
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
90 x.b =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
91
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
92 1 2
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
93 3 4
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
94
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
95 octave:7> x.c
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
96 x.c = string
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
97 octave:8> x.b.d = 3
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
98 x.b.d = 3
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
99 octave:9> x.b
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
100 x.b =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
101
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
102 <structure: d>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
103
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
104 octave:10> x.b.d
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
105 x.b.d = 3
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
106
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
107 Functions can return structures:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
108
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
109 octave:1> a = rand (3) + rand (3) * I;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
110 octave:2> function y = f (x)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
111 > y.re = real (x);
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
112 > y.im = imag (x);
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
113 > endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
114 octave:3> f (a)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
115 ans =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
116
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
117 <structure: im re>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
118
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
119 octave:4> ans.im
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
120 ans.im =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
121
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
122 0.093411 0.229690 0.627585
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
123 0.415128 0.221706 0.850341
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
124 0.894990 0.343265 0.384018
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
125
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
126 octave:5> ans.re
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
127 ans.re =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
128
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
129 0.56234 0.14797 0.26416
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
130 0.72120 0.62691 0.20910
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
131 0.89211 0.25175 0.21081
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
132
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
133 Return lists can include structure elements:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
134
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
135 octave:1> [x.u, x.s, x.v] = svd ([1, 2; 3, 4])
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
136 x.u =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
137
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
138 -0.40455 -0.91451
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
139 -0.91451 0.40455
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
140
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
141 x.s =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
142
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
143 5.46499 0.00000
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
144 0.00000 0.36597
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
145
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
146 x.v =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
147
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
148 -0.57605 0.81742
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
149 -0.81742 -0.57605
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
150
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
151 octave:8> x
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
152 x =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
153
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
154 <structure: s u v>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
155
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
156 This feature should be considered experimental, but it seems to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
157 work ok. Suggestions for ways to improve it are welcome.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
158
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
159 * Octave now supports a limited form of exception handling modelled
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
160 after the unwind-protect form of Lisp:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
161
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
162 unwind_protect
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
163 BODY
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
164 unwind_protect_cleanup
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
165 CLEANUP
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
166 end_unwind_protect
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
167
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
168 Where BODY and CLEANUP are both optional and may contain any
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
169 Octave expressions or commands. The statements in CLEANUP are
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
170 guaranteed to be executed regardless of how control exits BODY.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
171
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
172 This is useful to protect temporary changes to global variables
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
173 from possible errors. For example, the following code will always
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
174 restore the original value of the built-in variable
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
175 do_fortran_indexing even if an error occurs while performing the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
176 indexing operation.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
177
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
178 save_do_fortran_indexing = do_fortran_indexing;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
179 unwind_protect
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
180 do_fortran_indexing = "true";
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
181 elt = a (idx)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
182 unwind_protect_cleanup
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
183 do_fortran_indexing = save_do_fortran_indexing;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
184 end_unwind_protect
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
185
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
186 Without unwind_protect, the value of do_fortran_indexing would not
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
187 be restored if an error occurs while performing the indexing
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
188 operation because evaluation would stop at the point of the error
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
189 and the statement to restore the value would not be executed.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
190
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
191 * Recursive directory searching has been implemented using Karl
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
192 Berry's kpathsea library. Directories below path elements that
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
193 end in // are searched recursively for .m files.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
194
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
195 * Octave now waits for additional input when a pair of parentheses
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
196 is `open' instead of giving an error. This allows one to write
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
197 statements like this
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
198
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
199 if (big_long_variable_name == other_long_variable_name
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
200 || not_so_short_variable_name > 4
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
201 && y > x)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
202 some (code, here);
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
203
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
204 without having to clutter up the if statement with continuation
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
205 characters.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
206
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
207 * Continuation lines are now allowed in string constants and are
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
208 handled correctly inside matrix constants.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
209
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
210 * Both `...{whitespace}\n' and `\{whitespace}\n' can be used to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
211 introduce continuation lines, where {whitespace} may include
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
212 spaces, tabs and comemnts.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
213
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
214 * The script directory has been split up by topic.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
215
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
216 * Dynamic linking mostly works with dld. The following limitations
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
217 are known problems:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
218
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
219 -- Clearing dynamically linked functions doesn't work.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
220
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
221 -- Dynamic linking only works with dld, which has not been ported
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
222 to very many systems yet.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
223
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
224 -- Configuring with --enable-lite-kernel seems to mostly work to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
225 make nonessential built-in functions dynamically loaded, but
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
226 there also seem to be some problems. For example, fsolve seems
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
227 to always return info == 3. This is difficult to debug since
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
228 gdb won't seem to allow breakpoints to be set inside
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
229 dynamically loaded functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
230
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
231 -- Octave uses a lot of memory if the dynamically linked functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
232 are compiled with -g. This appears to be a limitation with
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
233 dld, and can be avoided by not using -g to compile functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
234 that will be linked dynamically.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
235
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
236 * fft2 and ifft2 are now built-in functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
237
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
238 * The `&&' and `||' logical operators are now evaluated in a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
239 short-circuit fashion and work differently than the element by
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
240 element operators `&' and `|'. See the Octave manual for more
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
241 details.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
242
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
243 * Expressions like 1./m are now parsed as 1 ./ m, not 1. / m.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
244
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
245 * The replot command now takes the same arguments as gplot or
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
246 gsplot (except ranges, which cannot be respecified with replot
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
247 (yet)) so you can add additional lines to existing plots.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
248
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
249 * The hold command has been implemented.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
250
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
251 * New function `clearplot' clears the plot window. The name `clg'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
252 is aliased to `clearplot' for compatibility with Matlab.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
253
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
254 * The commands `gplot clear' and `gsplot clear' are equivalent to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
255 `clearplot'. (Previously, `gplot clear' would evaluate `clear' as
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
256 an ordinary expression and clear all the visible variables.)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
257
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
258 * The Matlab-style plotting commands have been improved. They now
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
259 accept line-style arguments, multiple x-y pairs, and other plot
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
260 option flags. For example,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
261
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
262 plot (x, y, "@12", x, y2, x, y3, "4", x, y4, "+")
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
263
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
264 results in a plot with
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
265
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
266 y plotted with points of type 2 ("+") and color 1 (red).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
267 y2 plotted with lines.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
268 y3 plotted with lines of color 4.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
269 y4 plotted with points which are "+"s.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
270
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
271 the help message for `plot' and `plot_opt' provide full
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
272 descriptions of the options.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
273
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
274 * NaN is now dropped from plot data, and Inf is converted to a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
275 very large value before calling gnuplot.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
276
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
277 * Improved load and save commands:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
278
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
279 -- The save and load commands can now read and write a new binary
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
280 file format. Conversion to and from IEEE big and little endian
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
281 formats is handled automatically. Conversion for other formats
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
282 has not yet been implemented.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
283
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
284 -- The load command can now read Matlab .mat files, though it is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
285 not yet able to read sparse matrices or handle conversion for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
286 all data formats.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
287
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
288 -- The save command can write Matlab .mat files.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
289
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
290 -- The load command automatically determines the save format
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
291 (binary, ascii, or Matlab binary).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
292
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
293 -- The default format for the save command is taken from the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
294 built-in variable `default_save_format'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
295
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
296 -- The save and load commands now both accept a list of globbing
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
297 patterns so you can easily load a list of variables from a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
298 file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
299
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
300 -- The load command now accepts the option -list, for listing the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
301 variable names without actually loading the data. With
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
302 -verbose, it prints a long listing.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
303
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
304 -- The load command now accepts the option -float-binary, for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
305 saving floating point data in binary files in single precision.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
306
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
307 * who and whos now accept a list of globbing patterns so you can
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
308 limit the lists of variables and functions to those that match a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
309 given set of patterns.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
310
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
311 * New functions for manipulating polynomials
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
312
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
313 compan -- companion matrix corresponding to polynomial coefficients
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
314 conv -- convolve two vectors
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
315 deconv -- deconvolve two vectors
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
316 roots -- find the roots of a polynomial
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
317 poly -- characteristic polynomial of a matrix
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
318 polyderiv -- differentiate a polynomial
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
319 polyinteg -- integrate a polynomial
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
320 polyreduce -- reduce a polynomial to minimum number of terms
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
321 polyval -- evaluate a polynomial at a point
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
322 polyvalm -- evaluate a polynomial in the matrix sense
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
323 residue -- partial fraction expansion corresponding to the ratio
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
324 of two polynomials
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
325
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
326 * New functions for manipulating sets
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
327
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
328 create_set -- create a set of unique values
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
329 complement -- find the complement of two sets
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
330 intersection -- find the intersection of two sets
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
331 union -- find the union of two sets
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
332
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
333 * New elementary functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
334
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
335 acot acoth acsc acsch
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
336 asec asech cot coth
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
337 csc csch log2 sec
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
338 sech
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
339
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
340 * New special functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
341
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
342 beta -- beta function
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
343 betai -- incomplete beta function
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
344 gammai -- incomplete gamma function
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
345
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
346 * New image processing functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
347
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
348 colormap -- set and return current colormap
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
349 gray -- set a gray colormap
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
350 gray2ind -- image format conversion
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
351 image -- display an image
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
352 imagesc -- scale and display an image
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
353 imshow -- display images
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
354 ind2gray -- image format conversion
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
355 ind2rgb -- image format conversion
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
356 loadimage -- load an image from a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
357 ntsc2rgb -- image format conversion
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
358 ocean -- set a color colormap
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
359 rgb2ind -- image format conversion
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
360 rgb2ntsc -- image format conversion
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
361 saveimage -- save an image to a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
362
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
363 * New time and date funcitons:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
364
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
365 tic -- set wall-clock timer
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
366 toc -- get elapsed wall-clock time, since timer last set
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
367 etime -- another way to get elapsed wall-clock time
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
368 cputime -- get CPU time used since Octave started
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
369 is_leap_year -- is the given year a leap year?
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
370
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
371 * Other new functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
372
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
373 bug_report -- submit a bug report to the bug-octave mailing list
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
374
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
375 toascii -- convert a string to a matrix of ASCII character codes
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
376
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
377 octave_tmp_file -- generate a unique temporary file name
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
378
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
379 undo_string_escapes -- replace special characters in a string by
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
380 their backslash forms
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
381
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
382 is_struct -- determine whether something is a structure data type
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
383
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
384 feof -- check EOF condition for a specified file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
385 ferror -- check error state for a specified file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
386 fread -- read binary data from a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
387 fwrite -- write binary data to a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
388
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
389 file_in_path -- check to see if named file exists in given path
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
390
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
391 kbhit -- get a single character from the terminal
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
392
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
393 axis -- change plot ranges
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
394 hist -- plot histograms
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
395
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
396 diary -- save commands and output to a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
397
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
398 type -- show the definition of a function
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
399 which -- print the type of an identifier or the location of a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
400 function file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
401
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
402 isieee -- Returns 1 if host uses IEEE floating point
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
403 realmax -- Returns largest floating point number
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
404 realmin -- Returns smallest floating point number
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
405
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
406 gcd -- greatest common divisor
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
407 lcm -- least common multiple
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
408
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
409 null -- orthonormal basis of the null space of a matrix
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
410 orth -- orthonormal basis of the range space of a matrix
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
411
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
412 fft2 -- two-dimensional fast fourier transform
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
413 ifft2 -- two-dimensional inverse fast fourier transform
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
414 filter -- digital filter
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
415 fftfilt -- filter using fft
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
416 fftconv -- convolve to vectors using fft
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
417 sinc -- returns sin(pi*x)/(pi*x)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
418 freqz -- compute the frequency response of a filter
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
419
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
420 * The meaning of nargin (== args.length ()) in built-in functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
421 has been changed to match the meaning of nargin in user-defined
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
422 functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
423
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
424 * Variable return lists. Octave now has a real mechanism for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
425 handling functions that return an unspecified number of values,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
426 so it is no longer necessary to place an upper bound on the number
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
427 of outputs that a function can produce.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
428
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
429 Here is an example of a function that uses the new syntax to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
430 produce n values:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
431
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
432 function [...] = foo (n)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
433 for i = 1:n
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
434 vr_val (i * x);
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
435 endfor
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
436 endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
437
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
438 * New keyword, all_va_args, that allows the entire list of va_args
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
439 to be passed to another function. For example, given the functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
440
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
441 function f (...)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
442 while (nargin--)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
443 disp (va_arg ())
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
444 endwhile
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
445 endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
446 function g (...)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
447 f ("begin", all_va_args, "end")
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
448 endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
449
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
450 the statement
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
451
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
452 g (1, 2, 3)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
453
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
454 prints
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
455
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
456 begin
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
457 1
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
458 2
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
459 3
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
460 end
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
461
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
462 all_va_args may be used more than once, but can only be used
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
463 within functions that take a variable number of arguments.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
464
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
465 * If given a second argument, svd now returns an economy-sized
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
466 decomposition, eliminating the unecessary rows or columns of U or
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
467 V.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
468
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
469 * The max and min functions correctly handle complex matrices in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
470 which some columns contain real values only.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
471
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
472 * The find function now handles 2 and 3 output arguments.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
473
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
474 * The qr function now allows computation of QR with pivoting.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
475
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
476 * hilb() is much faster for large matrices.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
477
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
478 * computer() is now a built-in function.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
479
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
480 * pinv() is now a built-in function.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
481
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
482 * The output from the history command now goes through the pager.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
483
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
484 * If a function is called without assigning the result, nargout is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
485 now correctly set to 0.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
486
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
487 * It is now possible to write functions that only set some return
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
488 values. For example, calling the function
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
489
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
490 function [x, y, z] = f () x = 1; z = 2; endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
491
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
492 as
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
493
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
494 [a, b, c] = f ()
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
495
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
496 produces:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
497
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
498 a = 1
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
499
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
500 b = [](0x0)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
501
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
502 c = 2
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
503
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
504 * The shell_cmd function has been renamed to system (the name
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
505 shell_cmd remains for compatibility). It now returns [output, status].
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
506
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
507 * New built-in variable `OCTAVE_VERSION'. Also a new function,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
508 version, for compatibility with Matlab.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
509
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
510 * New built-in variable `automatic_replot'. If it is "true", Octave
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
511 will automatically send a replot command to gnuplot each time the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
512 plot changes. Since this is fairly inefficient, the default value
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
513 is "false".
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
514
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
515 * New built-in variable `whitespace_in_literal_matrix' allows some
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
516 control over how Octave decides to convert spaces to commas in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
517 matrix expressions like `[m (1)]'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
518
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
519 If the value of `whitespace_in_literal_matrix' is "ignore", Octave
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
520 will never insert a comma or a semicolon in a literal matrix list.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
521 For example, the expression `[1 2]' will result in an error
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
522 instead of being treated the same as `[1, 2]', and the expression
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
523
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
524 [ 1, 2,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
525 3, 4 ]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
526
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
527 will result in the vector [1 2 3 4] instead of a matrix.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
528
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
529 If the value of `whitespace_in_literal_matrix' is "traditional",
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
530 Octave will convert spaces to a comma between identifiers and `('.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
531 For example, given the matrix
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
532
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
533 m = [3 2]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
534
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
535 the expression
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
536
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
537 [m (1)]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
538
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
539 will be parsed as
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
540
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
541 [m, (1)]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
542
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
543 and will result in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
544
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
545 [3 2 1]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
546
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
547 and the expression
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
548
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
549 [ 1, 2,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
550 3, 4 ]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
551
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
552 will result in a matrix because the newline character is converted
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
553 to a semicolon (row separator) even though there is a comma at the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
554 end of the first line (trailing commas or semicolons are ignored).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
555 This is apparently how Matlab behaves.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
556
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
557 Any other value for `whitespace_in_literal_matrix' results in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
558 behavior that is the same as traditional, except that Octave does
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
559 not convert spaces to a comma between identifiers and `('.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
560 For example, the expression
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
561
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
562 [m (1)]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
563
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
564 will produce 3. This is the way Octave has always behaved.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
565
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
566 * Line numbers in error messages for functions defined in files and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
567 for script files now correspond to the file line number, not the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
568 number of lines after the function keyword appeared.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
569
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
570 * Octave now extracts help from script files. The comments must
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
571 come before any other statements in the file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
572
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
573 * In function files, the first block of comments in the file will
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
574 now be interpreted as the help text if it doesn't look like the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
575 Octave copyright notice. Otherwise, Octave extracts the first set
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
576 of comments after the function keyword.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
577
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
578 * The function clock is more accurate on systems that have the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
579 gettimeofday() function.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
580
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
581 * The standard output stream is now automatically flushed before
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
582 reading from stdin with any of the *scanf() functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
583
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
584 * Expanded reference card.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
585
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
586 * The Octave distribution now includes a frequently asked questions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
587 file, with answers. Better answers and more questions (with
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
588 answers!) are welcome.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
589
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
590 * New option --verbose. If Octave is invoked with --verbose and not
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
591 --silent, a message is printed if an octaverc file is read while
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
592 Octave is starting.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
593
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
594 * An improved configure script generated by Autoconf 2.0.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
595
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
596 * Lots of bug fixes.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
597 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
598
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
599 <h2>Summary of changes for version 1.0</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
600
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
601 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
602 * C-style I/O functions now handle files referenced by name or by
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
603 number more consistently.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
604 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
605
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
606 <h2>Summary of changes for version 0.83</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
607
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
608 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
609 * Loading global symbols should work now.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
610
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
611 * Clearing the screen doesn't reprint the prompt unnecessarily.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
612
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
613 * The operations <complex scalar> OP <real matrix> for OP == +, -,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
614 *, or ./ no longer crash Octave.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
615
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
616 * More portability and configuration fixes.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
617 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
618
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
619 <h2>Summary of changes for version 0.82</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
620
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
621 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
622 * Octave now comes with a reference card.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
623
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
624 * The manual has been improved, but more work remains to be done.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
625
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
626 * The atanh function now works for complex arguments.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
627
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
628 * The asin, acos, acosh, and atanh functions now work properly when
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
629 given real-valued arguments that produce complex results.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
630
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
631 * SEEK_SET, SEEK_CUR, and SEEK_END are now constants.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
632
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
633 * The `using' qualifier now works with gplot and gsplot when the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
634 data to plot is coming directly from a file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
635
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
636 * The strcmp function now works correctly for empty strings.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
637
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
638 * Eliminated bogus parse error for M-files that don't end with `end'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
639 or `endfunction'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
640
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
641 * For empty matrices with one nonzero dimension, the +, -, .*, and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
642 ./ operators now correctly preserve the dimension.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
643
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
644 * Octave no longer crashes if you type ^D at the beginning of a line
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
645 in the middle of defining a loop or if statement.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
646
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
647 * On AIX systems, Back off on indexing DiagArray via Proxy class to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
648 avoid gcc (or possibly AIX assembler?) bug.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
649
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
650 * Various other bug and portability fixes.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
651 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
652
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
653 <h2>Summary of changes for version 0.81</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
654
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
655 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
656 * Octave no longer dumps core if you try to define a function in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
657 your .octaverc file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
658
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
659 * Fixed bug in Array class that resulted in bogus off-diagonal
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
660 elements when computing eigenvalue and singular value
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
661 decompositions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
662
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
663 * Fixed bug that prevented lsode from working on the SPARCstation,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
664 at least with some versions of Sun's f77. This bug was introduced
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
665 in 0.80, when I changed LSODE to allow the user to abort the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
666 integration from within the RHS function.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
667
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
668 * Fixed bug that prevented global attribute of variables from being
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
669 saved with save(), and another that prevented load() from working
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
670 at all.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
671 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
672
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
673 <h2>Summary of changes for version 0.80</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
674
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
675 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
676 * I have started working on a manual for the C++ classes. At this
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
677 point, it is little more than a list of function names. If you
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
678 would like to volunteer to help work on this, please contact
5041
b2ce28713791 [project @ 2004-10-01 18:12:10 by jwe]
jwe
parents: 2590
diff changeset
679 bug@octave.org.
2590
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
680
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
681 * The patterns accepted by the save and clear commands now work like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
682 file name globbing patterns instead of regular expressions. I
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
683 apologize for any inconvenience this change may cause, but file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
684 name globbing seems like a more reasonable style of pattern
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
685 matching for this purpose.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
686
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
687 * It is now possible to specify tolerances and other optional inputs
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
688 for dassl, fsolve, lsode, npsol, qpsol, and quad. For each of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
689 these functions, there is a corresponding function X_options,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
690 which takes a keyword and value arguments. If invoked without any
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
691 arguments, the X_options functions print a list of possible
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
692 keywords and current values. For example,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
693
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
694 npsol_options ()
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
695
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
696 prints a list of possible options with values, and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
697
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
698 npsol_options ("major print level", 10)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
699
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
700 sets the major print level to 10.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
701
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
702 The keyword match is not case sensitive, and the keywords may be
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
703 abbreviated to the shortest unique match. For example,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
704
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
705 npsol_options ("ma p", 10)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
706
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
707 is equivalent to the statement shown above.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
708
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
709 * The new built-in variable save_precision can be used to set the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
710 number of digits preserved by the ASCII save command.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
711
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
712 * Assignment of [] now works in most cases to allow you to delete
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
713 rows or columns of matrices and vectors. For example, given a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
714 4x5 matrix A, the assignment
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
715
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
716 A (3, :) = []
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
717
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
718 deletes the third row of A, and the assignment
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
719
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
720 A (:, 1:2:5) = []
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
721
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
722 deletes the first, third, and fifth columns.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
723
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
724 * Variable argument lists. Octave now has a real mechanism for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
725 handling functions that take an unspecified number of arguments,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
726 so it is no longer necessary to place an upper bound on the number
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
727 of optional arguments that a function can accept.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
728
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
729 Here is an example of a function that uses the new syntax to print
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
730 a header followed by an unspecified number of values:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
731
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
732 function foo (heading, ...)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
733 disp (heading);
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
734 va_start ();
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
735 while (--nargin)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
736 disp (va_arg ());
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
737 endwhile
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
738 endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
739
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
740 Note that the argument list must contain at least one named
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
741 argument (this restriction may eventually be removed), and the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
742 ellipsis must appear as the last element of the argument list.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
743
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
744 Calling va_start() positions an internal pointer to the first
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
745 unnamed argument and allows you to cycle through the arguments
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
746 more than once. It is not necessary to call va_start() if you
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
747 do not plan to cycle through the arguments more than once.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
748
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
749 * Recursive functions should work now.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
750
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
751 * The environment variable OCTAVE_PATH is now handled in the same
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
752 way as TeX handles TEXINPUTS. If the path starts with `:', the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
753 standard path is prepended to the value obtained from the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
754 environment. If it ends with `:' the standard path is appended to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
755 the value obtained from the environment.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
756
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
757 * New functions, from Kurt Hornik (hornik@neuro.tuwien.ac.at) and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
758 the Department of Probability Theory and Statistics TU Wien,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
759 Austria:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
760
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
761 corrcoef -- corrcoef (X, Y) is the correlation between the i-th
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
762 variable in X and the j-th variable in Y
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
763 corrcoef (X) is corrcoef (X, X)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
764 cov -- cov (X, Y) is the covariance between the i-th
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
765 variable in X and the j-th variable in Y
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
766 cov (X) is cov (X, X)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
767 gls -- generalized least squares estimation
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
768 kurtosis -- kurtosis(x) = N^(-1) std(x)^(-4) SUM_i (x(i)-mean(x))^4 - 3
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
769 If x is a matrix, return the row vector containing
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
770 the kurtosis of each column
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
771 mahalanobis -- returns Mahalanobis' D-square distance between the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
772 multivariate samples X and Y, which must have the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
773 same number of components (columns), but may have
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
774 a different number of observations (rows)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
775 ols -- ordinary least squares estimation
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
776 pinv -- returns the pseudoinverse of X; singular values
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
777 less than tol are ignored
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
778 skewness -- skewness (x) = N^(-1) std(x)^(-3) SUM_i (x(i)-mean(x))^3
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
779 if x is a matrix, return the row vector containing
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
780 the skewness of each column
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
781
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
782 * Errors in user-supplied functions called from dassl, fsolve,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
783 lsode, npsol, and quad are handled more gracefully.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
784
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
785 * Programming errors in the use of the C++ classes within Octave
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
786 should no longer cause Octave to abort. Instead, Octave's error
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
787 handler function is called and execution continues as best as is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
788 possible. This should result in eventually returning control to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
789 the top-level Octave prompt. (It would be nice to have a real
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
790 exception handling mechanism...)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
791
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
792 * A number of memory leaks have been eliminated. Thanks to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
793 Fong Kin Fui <fui@ee.nus.sg> for reporting them.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
794
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
795 * The C++ matrix classes are now derived from a generic
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
796 template-based array class.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
797
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
798 * The readline function operate-and-get-next (from bash) is now
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
799 available and bound to C-O by default.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
800
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
801 * Octave now uses the version of readline currently distributed with
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
802 bash-1.13. On some systems, interactive invocations of Octave
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
803 will now blink the cursor to show matching parens.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
804
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
805 * By default, include files are now installed in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
806 $prefix/include/octave instead of $prefix/include.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
807
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
808 * Octave now uses a config.h file instead of putting all defines on
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
809 the compiler command line.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
810 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
811
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
812 <h2>Summary of changes for version 0.79</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
813
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
814 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
815 * New control systems functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
816
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
817 dgram -- Returns the discrete controllability and observability gramian.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
818 dlqr -- Discrete linear quadratic regulator design.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
819 dlqe -- Discrete linear quadratic estimator (Kalman Filter) design.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
820 c2d -- Convert continuous system description to discrete time
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
821 description assuming zero-order hold and given sample time.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
822
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
823 * The max (min) functions can now return the index of the max (min)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
824 value as a second return value.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
825 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
826
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
827 <h2>Summary of changes for version 0.78</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
828
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
829 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
830 * Octave's handling of global variables has been completely
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
831 rewritten. To access global variables inside a function, you must
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
832 now declare them to be global within the function body. Likewise,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
833 if you do not declare a variable as global at the command line,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
834 you will not have access to it within a function, even if it is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
835 declared global there. For example, given the function
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
836
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
837 function f ()
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
838 global x = 1;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
839 y = 2;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
840 endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
841
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
842 the global variable `x' is not visible at the top level until the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
843 command
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
844
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
845 octave:13> global x
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
846
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
847 has been evaluated, and the variable `y' remains local to the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
848 function f() even if it is declared global at the top level.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
849
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
850 Clearing a global variable at the top level will remove its global
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
851 scope and leave it undefined. For example,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
852
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
853 octave:1> function f () # Define a function that accesses
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
854 > global x; # the global variable `x'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
855 > x
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
856 > endfunction
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
857 octave:2> global x = 1 # Give the variable `x' a value.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
858 octave:3> f () # Evaluating the function accesses the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
859 x = 1 # global `x'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
860 octave:4> clear x # Remove `x' from global scope, clear value.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
861 octave:5> x = 2 # Define new local `x' at the top level
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
862 x = 2
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
863 octave:6> f # The global `x' is no longer defined.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
864 error: `x' undefined near line 1 column 25
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
865 error: evaluating expression near line 1, column 25
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
866 error: called from `f'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
867 octave:7> x # But the local one is.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
868 x = 2
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
869
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
870 * The new function, `is_global (string)' returns 1 if the variable
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
871 named by string is globally visible. Otherwise, returns 0.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
872
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
873 * The implementation of `who' has changed. It now accepts the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
874 following options:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
875
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
876 -b -builtins -- display info for built-in variables and functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
877 -f -functions -- display info for currently compiled functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
878 -v -variables -- display info for user variables
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
879 -l -long -- display long info
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
880
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
881 The long output looks like this:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
882
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
883 octave:5> who -l
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
884
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
885 *** currently compiled functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
886
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
887 prot type rows cols name
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
888 ==== ==== ==== ==== ====
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
889 wd user function - - f
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
890
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
891 *** local user variables:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
892
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
893 prot type rows cols name
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
894 ==== ==== ==== ==== ====
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
895 wd real scalar 1 1 y
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
896
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
897 *** globally visible user variables:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
898
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
899 prot type rows cols name
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
900 ==== ==== ==== ==== ====
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
901 wd complex matrix 13 13 x
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
902
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
903 where the first character of the `protection' field is `w' if the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
904 symbol can be redefined, and `-' if it has read-only access. The
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
905 second character may be `d' if the symbol can be deleted, or `-'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
906 if the symbol cannot be cleared.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
907
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
908 * The new built-in variable ignore_function_time_stamp can be used
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
909 to prevent Octave from calling stat() each time it looks up
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
910 functions defined in M-files. If set to "system", Octave will not
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
911 automatically recompile M-files in subdirectories of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
912 $OCTAVE_HOME/lib/VERSION if they have changed since they were last
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
913 compiled, but will recompile other M-files in the LOADPATH if they
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
914 change. If set to "all", Octave will not recompile any M-files
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
915 unless their definitions are removed with clear. For any other
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
916 value of ignore_function_time_stamp, Octave will always check to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
917 see if functions defined in M-files need to recompiled. The
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
918 default value of ignore_function_time_stamp is "system".
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
919
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
920 * The new built-in variable EDITOR can be used to specify the editor
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
921 for the edit_history command. It is set to the value of the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
922 environment variable EDITOR, or `vi' if EDITOR is not set, or is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
923 empty.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
924
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
925 * There is a new built-in variable, INFO_FILE, which is used as the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
926 location of the info file. Its initial value is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
927 $OCTAVE_HOME/info/octave.info, so `help -i' should now work
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
928 provided that OCTAVE_HOME is set correctly, even if Octave is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
929 installed in a directory different from that specified at compile
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
930 time.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
931
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
932 * There is a new command line option, --info-file FILE, that may be
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
933 used to set Octave's idea of the location of the info file. It
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
934 will override any value of OCTAVE_INFO_FILE found in the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
935 environment, but not any INFO_FILE="filename" commands found in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
936 the system or user startup files.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
937
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
938 * Octave's Info reader will now recognize gzipped files that have
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
939 names ending in `.gz'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
940
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
941 * The save command now accepts regular expressions as arguments.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
942 Note that these patterns are regular expressions, and do not work
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
943 like filename globbing. For example, given the variables `a',
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
944 `aa', and `a1', the command `save a*' saves `a' and `aa' but not
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
945 `a1'. To match all variables beginning with `a', you must use an
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
946 expression like `a.*' (match all sequences beginning with `a'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
947 followed by zero or more characters).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
948
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
949 * Line and column information is included in more error messages.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
950 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
951
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
952 <h2>Summary of changes for version 0.77</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
953
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
954 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
955 * Improved help. The command `help -i topic' now uses the GNU Info
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
956 browser to display help for the given topic directly from the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
957 Texinfo documenation.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
958
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
959 * New function: chol -- Cholesky factorization.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
960 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
961
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
962 <h2>Summary of changes for version 0.76</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
963
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
964 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
965 * Better run-time error messages. Many now include line and column
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
966 information indicating where the error occurred. Octave will also
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
967 print a traceback for errors occurring inside functions. If you
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
968 find error messages that could use improvement, or errors that
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
969 Octave fails to catch, please send a bug report to
5041
b2ce28713791 [project @ 2004-10-01 18:12:10 by jwe]
jwe
parents: 2590
diff changeset
970 bug@octave.org.
2590
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
971
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
972 * If gplot (or gsplot) is given a string to plot, and the string
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
973 does not name a file, Octave will pass the string along to gnuplot
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
974 directly. This allows commands like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
975
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
976 gplot "sin (x)" w l, data w p
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
977
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
978 to work (assuming that data is a variable containing a matrix of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
979 values).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
980
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
981 * Long options (--help, --version, etc.) are supported.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
982 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
983
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
984 <h2>Summary of changes for version 0.75</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
985
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
986 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
987 * The documentation is much more complete, but still could use a lot
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
988 of work.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
989
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
990 * The history function now prints line numbers by default. The
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
991 command `history -q' will omit them.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
992
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
993 * The clear function now accepts regular expressions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
994
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
995 * If gplot (or gsplot) is given a string to plot, and the string
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
996 names a file, Octave attempts to plot the contents of the file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
997
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
998 * New functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
999
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1000 history:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1001
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1002 run_history -- run commands from the history list.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1003 edit_history -- edit commands from the history list with your
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1004 favorite editor.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1005
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1006 linear algebra:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1007
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1008 balance -- Balancing for algebraic and generalized
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1009 eigenvalue problems.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1010 givens -- Givens rotation.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1011 is_square -- Check to see if a matrix is square.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1012 qzhess -- QZ decomposition of the matrix pencil (a - lambda b).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1013 qzval -- Generalized eigenvalues for real matrices.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1014 syl -- Sylvester equation solver.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1015
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1016 control systems:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1017
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1018 is_symmetric -- Check to see if a matrix is symmetric.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1019 abcddim -- Check dimensions of linear dynamic system [A,B,C,D].
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1020 is_controllable -- Check to see if [A,B,C,D] is controllable.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1021 is_observable -- Check to see if [A,B,C,D] is observable.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1022 are -- Solve algebraic Ricatti equation.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1023 dare -- Solve discrete-time algebraic Ricatti equation.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1024 lqe -- Kalman filter design for continuous linear system.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1025 lqr -- Linear Quadratic Regulator design.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1026 lyap -- Solve Lyapunov equation.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1027 dlyap -- Solve discrete Lyapunov equation.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1028 tzero -- Compute the transmission zeros of [A,B,C,D].
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1029 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1030
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1031 <h2>Summary of changes for version 0.74</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1032
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1033 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1034 * Formal parameters to functions are now always considered to be
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1035 local variables, so things like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1036
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1037 global x = 0
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1038 global y = 0
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1039 function y = f (x) x = 1; y = x; end
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1040 f (x)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1041
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1042 result in the function returning 1, with the global values of x
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1043 and y unchanged.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1044
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1045 * Multiple assignment expressions are now allowed to take indices,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1046 so things like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1047
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1048 octave:13> [a([1,2],[3,4]), b([5,6],[7,8])] = lu ([1,2;3,4])
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1049
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1050 will work correctly.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1051 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1052
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1053 <h2>Summary of changes for version 0.73</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1054
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1055 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1056 * Saving and loading global variables works correctly now.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1057
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1058 * The save command no longer saves built-in variables.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1059
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1060 * Global variables are more reliable.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1061
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1062 * Matrices may now have one or both dimensions zero, so that
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1063 operations on empty matrices are now handled more consistently.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1064
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1065 By default, dimensions of the empty matrix are now printed along
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1066 with the empty matrix symbol, `[]'. For example:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1067
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1068 octave:13> zeros (3, 0)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1069 ans =
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1070
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1071 [](3x0)
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1072
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1073 The new variable `print_empty_dimensions' controls this behavior.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1074
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1075 See also Carl de Boor, An Empty Exercise, SIGNUM, Volume 25,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1076 pages 2--6, 1990, or C. N. Nett and W. M. Haddad, A
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1077 System-Theoretic Appropriate Realization of the Empty Matrix
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1078 Concept, IEEE Transactions on Automatic Control, Volume 38,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1079 Number 5, May 1993.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1080
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1081 * The right and left division operators `/' and `\' will now find a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1082 minimum norm solution if the system is not square, or if the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1083 coefficient matrix is singular.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1084
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1085 * New functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1086
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1087 hess -- Hessenberg decomposition
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1088 schur -- Ordered Schur factorization
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1089 perror -- print error messages corresponding to error codes
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1090 returned from the functions fsolve, npsol, and qpsol
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1091 (with others to possibly be added later).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1092
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1093 * Octave now prints a warning if it finds anything other than
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1094 whitespace or comments after the final `end' or `endfunction'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1095 statement.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1096
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1097 * The bodies of functions, and the for, while, and if commands are
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1098 now allowed to be empty.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1099
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1100 * Support for Gill and Murray's QPSOL has been added. Like NPSOL,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1101 QPSOL is not freely redistributable either, so you must obtain
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1102 your own copy to be able to use this feature. More information
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1103 about where to find QPSOL and NPSOL are in the file README.NLP.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1104 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1105
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1106 <h2>Summary of changes for version 0.72</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1107
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1108 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1109 * For numeric output, columns are now lined up on the decimal point.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1110 (This requires libg++-2.3.1 or later to work correctly).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1111
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1112 * If octave is running interactively and the output intended for the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1113 screen is longer than one page and a pager is available, it is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1114 sent to the pager through a pipe. You may specify the program to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1115 use as the pager by setting the variable PAGER. PAGER may also
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1116 specify a command pipeline.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1117
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1118 * Spaces are not always significant inside square brackets now, so
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1119 commands like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1120
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1121 [ linspace (1, 2) ]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1122
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1123 will work. However, some possible sources of confusion remain
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1124 because Octave tries (possibly too hard) to determine exactly what
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1125 operation is intended from the context surrounding an operator.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1126 For example:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1127
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1128 -- In the command
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1129
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1130 [ 1 - 1 ]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1131
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1132 the `-' is treated as a binary operator and the result is the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1133 scalar 0, but in the command
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1134
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1135 [ 1 -1 ]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1136
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1137 the `-' is treated as a unary operator and the result is the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1138 vector [ 1 -1 ].
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1139
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1140 -- In the command
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1141
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1142 a = 1; [ 1 a' ]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1143
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1144 the single quote character `'' is treated as a transpose operator
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1145 and the result is the vector [ 1 1 ], but in the command
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1146
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1147 a = 1; [ 1 a ' ]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1148
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1149 an error message indicating an unterminated string constant is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1150 printed.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1151
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1152 * Assignments are just expressions now, so they are valid anywhere
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1153 other expressions are. This means that things like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1154
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1155 if (a = n < m) ... endif
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1156
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1157 are valid. This is parsed as: compare `n < m', assign the result
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1158 to the variable `a', and use it as the test expression in the if
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1159 statement.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1160
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1161 To help avoid errors where `=' has been used but `==' was
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1162 intended, Octave issues a warning suggesting parenthesis around
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1163 assignments used as truth values. You can suppress this warning
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1164 by adding parenthesis, or by setting the value of the new built-in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1165 variable `warn_assign_as_truth_value' to 'false' (the default
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1166 value is 'true').
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1167
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1168 This is also true for multiple assignments, so expressions like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1169
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1170 [a, b, c] = [u, s, v] = expression
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1171
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1172 are now possible. If the expression is a function, nargout is set
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1173 to the number of arguments for the right-most assignment. The
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1174 other assignments need not contain the same number of elements.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1175 Extra left hand side variables in an assignment become undefined.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1176
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1177 * The default line style for plots is now `lines' instead of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1178 `points'. To change it, use the `set data style STYLE' command.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1179
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1180 * New file handling and I/O functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1181
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1182 fopen -- open a file for reading or writing
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1183 fclose -- close a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1184 fflush -- flush output to a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1185 fgets -- read characters from a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1186 frewind -- set file position to the beginning of a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1187 fseek -- set file position
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1188 ftell -- tell file position
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1189 freport -- print a report for all open files
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1190 fscanf -- read from a file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1191 sscanf -- read from a string
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1192 scanf -- read from the standard input
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1193
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1194 * New built-in variables for file and I/O functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1195
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1196 stdin -- file number corresponding to the standard input stream.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1197 stdout -- file number corresponding to the standard output stream.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1198 stderr -- file number corresponding to the standard error stream.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1199
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1200 The following may be used as the final (optional) argument for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1201 fseek:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1202
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1203 SEEK_SET -- set position relative to the beginning of the file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1204 SEEK_CUR -- set position relative to the current position.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1205 SEEK_END -- set position relative to the end of the file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1206
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1207 * New function: setstr -- convert vectors or scalars to strings
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1208 (doesn't work for matrices yet).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1209
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1210 * If possible, computer now prints the system type instead of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1211 always printing `Hi Dave, I'm a HAL-9000'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1212
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1213 * Octave now properly saves and restores its internal state
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1214 correctly in more places. Interrupting Octave while it is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1215 executing a script file no longer causes it to exit.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1216
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1217 * Octave now does tilde expansion on each element of the LOADPATH.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1218
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1219 * A number of memory leaks have been plugged.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1220
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1221 * Dependencies for C++ source files are now generated automatically
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1222 by g++.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1223
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1224 * There is a new command line option, -p PATH, that may be used to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1225 set Octave's loadpath from the command line. It will override any
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1226 value of OCTAVE_PATH found in the environment, but not any
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1227 LOADPATH="path" commands found in the system or user startup files.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1228
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1229 * It is now possible to override Octave's default idea of the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1230 location of the system-wide startup file (usually stored in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1231 $(prefix)/lib/octave/octaverc) using the environment variable
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1232 OCTAVE_HOME. If OCTAVE_HOME has a value, Octave will look for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1233 octaverc and its M-files in the directory $OCTAVE_HOME/lib/octave.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1234
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1235 This allows people who are using binary distributions (as is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1236 common with systems like Linux) to install the real octave binary
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1237 in any directory (using a name like octave.bin) and then install
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1238 a simple script like this
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1239
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1240 #!/bin/sh
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1241 OCTAVE_HOME=/foo/bar/baz
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1242 export OCTAVE_HOME
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1243 exec octave.bin
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1244
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1245 to be invoked as octave.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1246
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1247 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1248
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1249 <h2>Summary of changes for version 0.71</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1250
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1251 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1252 * Much improved plotting facility. With this release, Octave does
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1253 not require a specially modified version of gnuplot, so gnuplot
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1254 sources are no longer distributed with Octave. For a more
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1255 detailed description of the new plotting features, see the file
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1256 PLOTTING.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1257
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1258 * New plotting commands:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1259
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1260 plot -- 2D plots
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1261 semilogx -- 2D semilog plot with logscale on the x axis
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1262 semilogy -- 2D semilog plot with logscale on the y axis
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1263 loglog -- 2D log-log plot
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1264 mesh -- 3D mesh plot
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1265 meshdom -- create matrices for 3D plotting from two vectors
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1266 contour -- contour plots of 3D data
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1267 bar -- create bar graphs
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1268 stairs -- create stairstep plots
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1269 polar -- 2D plots from theta-R data
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1270 grid -- turn plot grid lines on or off
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1271 xlabel, ylabel -- place labels on the x and y axes of 2D plots
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1272 sombrero -- demonstrate 3D plotting
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1273 gplot -- 2D plot command with gnuplot-like syntax
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1274 gsplot -- 3D plot command with gnuplot-like syntax
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1275 set -- set plot options with gnuplot syntax
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1276 show -- show plot options with gnuplot syntax
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1277 closeplot -- close stream to gnuplot process
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1278 purge_tmp_files -- delete temporary files created by plot command
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1279
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1280 * Other new commands:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1281
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1282 ls, dir -- print a directory listing
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1283 shell_cmd -- execute shell commands
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1284 keyboard -- get input from keyboard, useful for debugging
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1285 menu -- display a menu of options and ask for input
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1286 fft -- fast fourier transform
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1287 ifft -- inverse fast fourier transform
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1288
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1289 * Strings may be enclosed in either single or double quote
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1290 characters. Double quote characters are not special within single
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1291 quote strings, and single quotes are not special within double
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1292 quote strings.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1293
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1294 * Command name completion now works for M-file names too.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1295
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1296 * Better help and usage messages for many functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1297
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1298 * Help is now available for functions defined in M-files. The first
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1299 block of comments is taken as the text of the help message.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1300
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1301 * Numerous changes in preparation to support dynamic loading of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1302 object files with dld.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1303
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1304 * Bug fixes to make solving DAEs with dassl actually work.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1305
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1306 * The command `save file' now saves all variables in the named file.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1307
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1308 * If do_fortran_indexing is 'true', indexing a scalar with
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1309 [1,1,1,...] (n times) replicates its value n times. The
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1310 orientation of the resulting vector depends on the value of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1311 prefer_column_vectors.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1312
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1313 * Things like [[1,2][3,4]] no longer cause core dumps, and invalid
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1314 input like [1,2;3,4,[5,6]] now produces a diagnositic message.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1315
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1316 * The cd, save, and load commands now do tilde expansion.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1317
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1318 * It's now possible to clear global variables and functions by name.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1319
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1320 * Use of clear inside functions is now a parse error.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1321 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1322
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1323 <h2>Summary of changes for version 0.70</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1324
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1325 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1326 * Better parse error diagnostics. For interactive input, you get
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1327 messages like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1328
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1329 octave:1> a = 3 + * 4;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1330
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1331 parse error:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1332
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1333 a = 3 + * 4;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1334 ^
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1335
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1336 and for script files, the message includes the file name and input
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1337 line number:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1338
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1339 octave:1> foo
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1340
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1341 parse error near line 4 of file foo.m:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1342
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1343 a = 3 + * 4;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1344 ^
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1345
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1346 * New built-in variable PS2 which is used as the secondary prompt.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1347 The default value is '> '.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1348
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1349 * New file, octave-mode.el, for editing Octave code with GNU Emacs.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1350 This is a modified version of Matthew R. Wette's matlab-mode.el.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1351
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1352 * Better support for missing math functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1353
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1354 * User preferences are now cached in a global struct so we don't
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1355 have to do a symbol table lookup each time we need to know what
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1356 they are. This should mean slightly improved performance for
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1357 evaluating expressions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1358 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1359
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1360 <h2>Summary of changes for version 0.69</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1361
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1362 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1363 * Multiple assignments are now possible, so statements like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1364
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1365 a = b = c = 3;
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1366 a = b = c = [1,2;3,4];
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1367
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1368 or
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1369
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1370 c = (a = (b = 2) * 3 + 4) * 5
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1371
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1372 are legal, as are things that have even more bizarre effects, like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1373
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1374 a(4:6,4:6) = b(2:3,2:3) = [1,2;3,4];
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1375
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1376 (try it).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1377
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1378 * Improved parsing of strings (but they still don't work as matrix
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1379 elements).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1380
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1381 * An M-file may now either define a function or be a list of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1382 commands to execute.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1383
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1384 * Better detection and conditional compilation of IEEE functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1385 isinf, finite, and isnan.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1386
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1387 * Replacements for acosh, asinh, atanh, and gamma from the BSD math
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1388 library for those systems that don't have them.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1389 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1390
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1391 <h2>Summary of changes for version 0.68</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1392
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1393 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1394 * New functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1395
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1396 eval -- evaluate a string as a sequence of Octave commands.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1397 input -- print a prompt and get user input.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1398 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1399
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1400 <h2>Summary of changes for version 0.67</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1401
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1402 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1403 * New functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1404
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1405 find -- return the indices of nonzero elements.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1406
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1407 * Zero-one style indexing now works. For example,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1408
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1409 a = [1,2,3,4];
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1410 b = a([1,0,0,1])
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1411
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1412 sets b to the first and fourth elememnts of a.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1413
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1414 Zero-one style indexing also works for indexing the left hand side
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1415 of an assignment. For example,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1416
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1417 a = rand (1,2;3,4);
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1418 a([0,1],:) = [-1,-2]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1419
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1420 sets the second row of a to [-1 -2]
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1421
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1422 The behavior for the ambiguous case
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1423
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1424 a = [1,2,3,4];
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1425 b = a([1,1,1,1]);
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1426
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1427 is controlled by the new global variable `prefer_zero_one_indexing'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1428 If this variable is equal to 'true', b will be set to [1 2 3 4].
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1429 If it is false, b will be set to [1 1 1 1]. The default value is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1430 'false'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1431
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1432 * Using the new global variable `propagate_empty_matrices', it is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1433 possible to have unary andy binary operations on empty matrices
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1434 return an empty matrix. The default value of this variable is
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1435 'warn', so that empty matrices are propagated but you get a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1436 warning. Some functions, like eig and svd have also been changed
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1437 to handle this.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1438
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1439 * Empty matrices can be used in conditionals, but they always
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1440 evaluate to `false'. With propagate_empty_matrices = 'true', both
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1441 of the following expressions print 0:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1442
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1443 if [], 1, else 0, end
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1444 if ~[], 1, else 0, end
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1445
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1446 * Octave no longer converts input like `3.2 i' or `3 I' to complex
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1447 constants directly because that causes problems inside square
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1448 brackets, where spaces are important. This abbreviated notation
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1449 *does* work if there isn't a space between the number and the i,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1450 I, j, or J.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1451 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1452
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1453 <h2>Summary of changes for version 0.66</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1454
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1455 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1456 * Logical unary not operator (~ or !) now works for complex.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1457
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1458 * Left division works.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1459
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1460 * Right and left element by element division should work correctly
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1461 now.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1462
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1463 * Numbers like .3e+2 are no longer errors.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1464
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1465 * Indexing a matrix with a complex value doesn't cause a core dump.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1466
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1467 * The min and max functions should work correctly for two arguments.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1468
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1469 * Improved (I hope!) configuration checks.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1470
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1471 * Octave is now installed as octave-M.N, where M and N are version
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1472 numbers, and octave is a link to that file. This makes it
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1473 possible to have more than one version of the interpreter installed.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1474 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1475
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1476 <h2>Summary of changes for version 0.63</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1477
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1478 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1479 * The reshape function works again.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1480
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1481 * Octave now converts input like `3.2i' or `3 I' or `2.3e5 j' to be
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1482 complex constants directly, rather than requiring an expression
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1483 like `3.3 * i' to be evaluated.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1484 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1485
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1486 <h2>Summary of changes for version 0.61</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1487
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1488 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1489 * Octave has been successfully compiled using gcc 2.3.3 and libg++ 2.3.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1490 on a 486 system running Linux.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1491
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1492 * The win_texas_lotto function is now called texas_lotto (it's a
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1493 script file, and win_texas_lotto.m is too long for some Linux and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1494 System V systems).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1495 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1496
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1497 <h2>Summary of changes for version 0.57</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1498
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1499 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1500 * The C-like formatted print functions printf, fprintf, and sprintf
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1501 finally work.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1502 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1503
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1504 <h2>Summary of changes for version 0.56</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1505
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1506 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1507 * By default, octave prints a short disclaimer when it starts.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1508 (You can suppress it by invoking octave with -q).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1509
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1510 * You can keep octave from reading your ~/.octaverc and .octaverc
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1511 files by invoking it with -f.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1512
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1513 * When returning two values, eig now returns [v, d] instead of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1514 [lambda, v], where d is a diagonal matrix made from lambda.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1515
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1516 * The win_texas_lotto function now produces a sorted list.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1517
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1518 * New functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1519
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1520 expm -- matrix exponential.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1521 logm -- matrix logarithm.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1522 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1523
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1524 <h2>Summary of changes for version 0.55</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1525
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1526 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1527 * The following (C-style) backslash escape sequences work in quoted
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1528 strings (useful(?) with printf()):
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1529
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1530 \a bell \r carriage return
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1531 \b backspace \t horizontal tab
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1532 \f formfeed \v vertical tab
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1533 \n newline \\ backslash
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1534
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1535 * Use of `...' at the end of a line will allow a statement to
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1536 continue over more than one line.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1537
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1538 * The names `inf' and `nan' are now aliases for `Inf' and `NaN',
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1539 respectively.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1540
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1541 * New functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1542
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1543 casesen -- print a warning if the luser tries to turn off case
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1544 sensitivity.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1545 median -- find median value.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1546 norm -- compute the norm of a matrix.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1547 sort -- sort columns.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1548
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1549 * New variable, `silent_functions'. If silent_functions == 'true',
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1550 the results of expressions are not printed even if they are not
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1551 followed by a semicolon. The disp() and printf() functions still
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1552 result in output. The default value for this variable is 'false'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1553
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1554 * New variable `return_last_value_computed'. If it is 'true',
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1555 functions defined in script files return the last value computed
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1556 if a return value has not been explicitly declared. The default
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1557 value for this variable is 'false'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1558 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1559
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1560 <h2>Summary of changes for version 0.52</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1561
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1562 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1563 * Name completion works for function and variable names currently in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1564 the symbol tables. Coming soon: completion for names of functions
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1565 defined in script files but not yet compiled.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1566
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1567 * The initial value of do_fortran_indexing is now false, and the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1568 initial value of prefer_column_vectors is now true. Swap the
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1569 values of these variables if you want behavior that is more like
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1570 Matlab.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1571
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1572 * All script files check the number of input arguments before doing
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1573 much real work.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1574
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1575 * The identifiers `i' and `j' are now also names for sqrt(-1).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1576 These symbols may be used for other purposes, but their original
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1577 definition will reappear if they are cleared.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1578
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1579 * The symbol tables are now implemented with hash tables for faster
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1580 searching.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1581
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1582 * A small amount of help is now available for most built-in
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1583 operators, keywords and functions. Coming soon: help for script
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1584 files.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1585
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1586 * Without any arguments, the help command now lists all known
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1587 built-in operators, keywords and functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1588
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1589 * Generic parse errors are now signalled by `Eh, what's up doc?',
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1590 which is closer to what Bugs actually says.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1591
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1592 * The who command now only prints variable names by default.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1593 Use the -fcn (or -fcns, or -functions) switch to print the names of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1594 built-in or currently compiled functions.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1595 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1596
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1597 <h2>Summary of changes for version 0.51</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1598
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1599 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1600 * Major overhaul of array indexing.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1601
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1602 * The colloc function actually works now.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1603 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1604
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1605 <h2>Summary of changes for version 0.50</h2>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1606
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1607 <pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1608 * The lsode and dassl functions now return the states only,
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1609 instead of the time and the states, so you must keep track of
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1610 the corresponding times (this is easy though, because you have
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1611 to specify a vector of desired output times anyway).
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1612
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1613 * Solution of NLPs with NPSOL now works on the SPARC.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1614
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1615 * New keywords `endif', `endfor', `endfunction', `endif', and
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1616 `endwhile', which allow for better diagnostics. The `end' keyword
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1617 is still recognized. All script files have been changed to use
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1618 these new keywords in place of `end'.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1619
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1620 * It is now possible to uninstall Octave by doing a `make uninstall'
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1621 in the top level directory.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1622
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1623 * The Makefiles are much closer to conforming with GNU coding standards.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1624
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1625 * New functions:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1626
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1627 win_texas_lotto -- produce six unique random numbers between 1 and 50.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1628 quad -- numerical integration.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1629 lu -- LU factorization
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1630 qr -- QR factorization
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1631 dassl -- Solution of DAEs using DASSL.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1632
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1633 * New files:
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1634
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1635 THANKS -- A list of people and organazations who have supported
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1636 the development of Octave.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1637
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1638 NEWS -- This file, listing recent changes.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1639
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1640 * Help is now available at the gnuplot prompt.
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1641 </pre>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1642
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1643 </body>
c6cbc2041469 [project @ 1996-12-14 00:24:47 by jwe]
jwe
parents:
diff changeset
1644 </html>