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