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