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