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