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