annotate pages/NEWS-3.8.md @ 271:3ce19581b946

LICENSE: Add "GPL-3.0-or-later" for code
author Kai Torben Ohlhus <k.ohlhus@gmail.com>
date Mon, 21 Feb 2022 17:32:38 +0900
parents e69093ab4992
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
215
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
1 ---
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
2 layout: page
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
3 title: GNU Octave Version 3.8
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
4 permalink: NEWS-3.8.html
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
5 ---
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
6
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
7 ## Summary of important user-visible changes
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
8
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
9 December 27, 2013
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
10
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
11 {% include release_news_select.md %}
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
12
224
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
13 {::options parse_block_html="true" /}
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
14 <div class="panel callout">
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
15 * TOC
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
16 {:toc}
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
17 </div>
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
18 {::options parse_block_html="false" /}
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
19
e69093ab4992 Improve Release Notes display.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 216
diff changeset
20
215
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
21 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
22 ** One of the biggest new features for Octave 3.8 is a graphical user
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
23 interface. It is the one thing that users have requested most
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
24 often over the last few years and now it is almost ready. But
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
25 because it is not quite as polished as we would like, we have
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
26 decided to wait until the 4.0.x release series before making the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
27 GUI the default interface (until then, you can use the --force-gui
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
28 option to start the GUI).
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
29
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
30 Given the length of time and the number of bug fixes and
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
31 improvements since the last major release Octave, we also decided
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
32 against delaying the release of all these new improvements any
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
33 longer just to perfect the GUI. So please enjoy the 3.8 release of
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
34 Octave and the preview of the new GUI. We believe it is working
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
35 reasonably well, but we also know that there are some obvious rough
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
36 spots and many things that could be improved.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
37
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
38 WE NEED YOUR HELP. There are many ways that you can help us fix
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
39 the remaining problems, complete the GUI, and improve the overall
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
40 user experience for both novices and experts alike:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
41
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
42 * If you are a skilled software developer, you can help by
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
43 contributing your time to help with Octave's development. See
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
44 http://octave.org/get-involved.html for more information.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
45
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
46 * If Octave does not work properly, you are encouraged
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
47 report the problems you find. See http://octave.org/bugs.html
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
48 for more information about how to report problems.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
49
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
50 * Whether you are a user or developer, you can help to fund the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
51 project. Octave development takes a lot of time and expertise.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
52 Your contributions help to ensure that Octave will continue to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
53 improve. See http://octave.org/donate.html for more details.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
54
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
55 We hope you find Octave to be useful. Please help us make it even
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
56 better for the future!
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
57
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
58 ** Octave now uses OpenGL graphics by default with FLTK widgets. If
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
59 OpenGL libraries or FLTK widgets are not available when Octave is
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
60 built, gnuplot is used. You may also choose to use gnuplot for
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
61 graphics by executing the command
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
62
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
63 graphics_toolkit ("gnuplot")
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
64
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
65 Adding this command to your ~/.octaverc file will set the default
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
66 for each session.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
67
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
68 ** Printing or saving figures with OpenGL graphics requires the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
69 gl2ps library which is no longer distributed with Octave. The
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
70 software is widely available in most package managers. If a
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
71 pre-compiled package does not exist for your system, you can find
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
72 the current sources at http://www.geuz.org/gl2ps/.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
73
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
74 ** Octave now supports nested functions with scoping rules that are
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
75 compatible with Matlab. A nested function is one declared and defined
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
76 within the body of another function. The nested function is only
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
77 accessible from within the enclosing function which makes it one
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
78 method for making private functions whose names do not conflict with those
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
79 in the global namespace (See also subfunctions and private functions).
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
80 In addition, variables in the enclosing function are visible within the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
81 nested function. This makes it possible to have a pseudo-global variable
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
82 which can be seen by a group of functions, but which is not visible in
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
83 the global namespace.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
84
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
85 Example:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
86 function outerfunc (...)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
87 ...
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
88 function nested1 (...)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
89 ...
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
90 function nested2 (...)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
91 ...
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
92 endfunction
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
93 endfunction
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
94
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
95 function nested3 (...)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
96 ...
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
97 endfunction
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
98 endfunction
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
99
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
100 ** Line continuations inside character strings have changed.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
101
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
102 The sequence '...' is no longer recognized as a line continuation
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
103 inside a character string. A backslash '\' followed by a newline
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
104 character is no longer recognized as a line continuation inside
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
105 single-quoted character strings. Inside double-quoted character
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
106 strings, a backslash followed by a newline character is still
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
107 recognized as a line continuation, but the backslash character must
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
108 be followed *immediately* by the newline character. No whitespace or
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
109 end-of-line comment may appear between them.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
110
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
111 ** Backslash as a continuation marker outside of double-quoted strings
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
112 is now deprecated.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
113
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
114 Using '\' as a continuation marker outside of double quoted strings
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
115 is now deprecated and will be removed from a future version of
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
116 Octave. When that is done, the behavior of
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
117
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
118 (a \
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
119 b)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
120
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
121 will be consistent with other binary operators.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
122
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
123 ** Redundant terminal comma accepted by parser
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
124
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
125 A redundant terminal comma is now accepted in matrix
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
126 definitions which allows writing code such as
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
127
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
128 [a,...
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
129 b,...
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
130 c,...
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
131 ] = deal (1,2,3)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
132
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
133 ** Octave now has limited support for named exceptions
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
134
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
135 The following syntax is now accepted:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
136
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
137 try
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
138 statements
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
139 catch exception-id
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
140 statements
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
141 end
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
142
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
143 The exception-id is a structure with the fields "message" and
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
144 "identifier". For example
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
145
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
146 try
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
147 error ("Octave:error-id", "error message");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
148 catch myerr
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
149 printf ("identifier: %s\n", myerr.identifier);
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
150 printf ("message: %s\n", myerr.message);
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
151 end_try_catch
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
152
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
153 When classdef-style classes are added to Octave, the exception-id
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
154 will become an MException object.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
155
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
156 ** Warning states may now be set temporarily, until the end of the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
157 current function, using the syntax
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
158
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
159 warning STATE ID "local"
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
160
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
161 in which STATE may be "on", "off", or "error". Changes to warning
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
162 states that are set locally affect the current function and all
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
163 functions called from the current scope. The previous warning state
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
164 is restored on return from the current function. The "local"
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
165 option is ignored if used in the top-level workspace.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
166
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
167 ** Warning IDs renamed:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
168
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
169 Octave:array-as-scalar => Octave:array-to-scalar
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
170 Octave:array-as-vector => Octave:array-to-vector
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
171
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
172 ** 'emptymatch', 'noemptymatch' options added to regular expressions.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
173
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
174 With this addition Octave now accepts the entire set of Matlab options
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
175 for regular expressions. 'noemptymatch' is the default, but 'emptymatch'
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
176 has certain uses where you need to match an assertion rather than actual
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
177 characters. For example,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
178
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
179 regexprep ('World', '^', 'Hello ', 'emptymatch')
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
180 => Hello World
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
181
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
182 where the pattern is actually the assertion '^' or start-of-line.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
183
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
184 ** For compatibility with Matlab, the regexp, regexpi, and regexprep
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
185 functions now process backslash escape sequences in single-quoted pattern
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
186 strings. In addition, the regexprep function now processes backslash
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
187 escapes in single-quoted replacement strings. For example,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
188
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
189 regexprep (str, '\t', '\n')
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
190
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
191 would search the variable str for a TAB character (escape sequence \t)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
192 and replace it with a NEWLINE (escape sequence \n). Previously the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
193 expression would have searched for a literal '\' followed by 't' and
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
194 replaced the two characters with the sequence '\', 'n'.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
195
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
196 ** A TeX parser has been implemented for the FLTK toolkit and is the default
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
197 for any text object including titles and axis labels. The TeX parser is
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
198 supported only for display on a monitor, not for printing.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
199
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
200 A quick summary of features:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
201
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
202 Code Feature Example Comment
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
203 -----------------------------------------------------------------
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
204 _ subscript H_2O formula for water
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
205 ^ exponent y=x^2 formula for parabola
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
206 \char symbol \beta Greek symbol beta
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
207 \fontname font \fontname{Arial} set Arial font
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
208 \fontsize fontsize \fontsize{16} set fontsize 16
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
209 \color[rgb] fontcolor \color[rgb]{1 0 1} set magenta color
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
210 \bf bold \bfBold Text bold font
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
211 \it italic \itItalic Text italic font
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
212 \sl slanted \slOblique Text slanted font
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
213 \rm normal \bfBold\rmNormal normal font
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
214 {} group {\bf Bold}Normal group objects
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
215 e^{i*\pi} = -1 group objects
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
216
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
217 ** The m-files in the plot directory have been overhauled.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
218
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
219 The plot functions now produce output that is nearly visually compatible
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
220 with Matlab. Plot performance has also increased, dramatically for some
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
221 functions such as comet and waitbar. Finally, the documentation for most
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
222 functions has been updated so it should be clearer both how to use a
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
223 function and when a function is appropriate.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
224
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
225 ** The m-files in the image directory have been overhauled.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
226
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
227 The principal benefit is that Octave will now no longer automatically
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
228 convert images stored with integers to doubles. Storing images as uint8
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
229 or uint16 requires only 1/8 or 1/4 the memory of an image stored using
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
230 doubles. For certain operations, such as fft2, the image must still be
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
231 converted to double in order to work.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
232
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
233 Other changes include fixes to the way indexed images are read from a
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
234 colormap depending on the image class (integer images have a -1 offset to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
235 the colormap row number).
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
236
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
237 ** The imread and imwrite functions have been completely rewritten.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
238
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
239 The main changes relate to the alpha channel, support for reading and
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
240 writing of floating point images, implemented writing of indexed images,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
241 and appending images to multipage image files.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
242
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
243 The issues that may arise due to backwards incompatibility are:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
244
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
245 * imwrite no longer interprets a length of 2 or 4 in the third dimension
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
246 as grayscale or RGB with alpha channel (a length of 4 will be saved
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
247 as a CMYK image). Alpha channel must be passed as separate argument.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
248
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
249 * imread will always return the colormap indexes when reading an indexed
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
250 image, even if the colormap is not requested as output.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
251
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
252 * transparency values are now inverted from previous Octave versions
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
253 (0 is for completely transparent instead of completely opaque).
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
254
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
255 In addition, the function imformats has been implemented to expand
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
256 reading and writing of images of different formats through imread
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
257 and imwrite.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
258
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
259 ** The colormap function now provides new options--"list", "register",
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
260 and "unregister"--to list all available colormap functions, and to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
261 add or remove a function name from the list of known colormap
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
262 functions. Packages that implement extra colormaps should use these
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
263 commands with PKG_ADD and PKG_DEL statements.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
264
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
265 ** strsplit has been modified to be compatible with Matlab. There
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
266 are two instances where backward compatibility is broken.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
267
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
268 (1) Delimiters are now string vectors, not scalars.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
269
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
270 Octave's legacy behavior
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
271
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
272 strsplit ("1 2, 3", ", ")
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
273 ans =
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
274 {
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
275 [1,1] = 1
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
276 [1,2] = 2
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
277 [1,3] =
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
278 [1,4] = 3
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
279 }
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
280
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
281 Matlab compatible behavior
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
282
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
283 strsplit ("1 2, 3", ", ")
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
284 ans =
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
285 {
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
286 [1,1] = 1 2
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
287 [1,2] = 3
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
288 }
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
289
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
290 (2) By default, Matlab treats consecutive delimiters as a single
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
291 delimiter. By default, Octave's legacy behavior was to return an
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
292 empty string for the part between the delmiters.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
293
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
294 Where legacy behavior is desired, the call to strsplit() may be
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
295 replaced by ostrsplit(), which is Octave's original implementation of
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
296 strsplit().
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
297
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
298 ** The datevec function has been extended for better Matlab compatibility.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
299 It now accepts string inputs in the following numerical formats: 12, 21,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
300 22, 26, 29, 31. This is undocumented, but verifiable, Matlab behavior.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
301 In addition, the default for formats which do not specify a date is
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
302 January 1st of the current year. The previous default was the current day,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
303 month, and year. This may produce changes in existing scripts.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
304
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
305 ** The error function and its derivatives has been extended to accept complex
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
306 arguments. The following functions now accept complex inputs:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
307
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
308 erf erfc erfcx
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
309
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
310 In addition two new error functions erfi (imaginary error function) and
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
311 dawson (scaled imaginary error function) have been added.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
312
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
313 ** The glpk function has been modified to reflect changes in the GLPK
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
314 library. The "round" and "itcnt" options have been removed. The
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
315 "relax" option has been replaced by the "rtest" option. The numeric
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
316 values of error codes and of some options have also changed.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
317
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
318 ** The kurtosis function has changed definition to be compatible with
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
319 Matlab. It now returns the base kurtosis instead of the "excess kurtosis".
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
320 The old behavior can be had by changing scripts to normalize with -3.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
321
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
322 "excess kurtosis" = kurtosis (x) - 3
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
323
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
324 ** The moment function has changed definition to be compatible with
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
325 Matlab. It now returns the central moment instead of the raw moment.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
326 The old behavior can be had by passing the type argument "r" for raw.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
327
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
328 ** The default name of the Octave crash dump file is now
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
329 "octave-workspace" instead of "octave-core". The exact name can
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
330 always be customized with the octave_core_file_name function.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
331
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
332 ** A citation command has been added to display information on how to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
333 cite Octave and packages in publications. The package system will
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
334 look for and install CITATION files from packages.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
335
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
336 ** The java package from Octave Forge is now part of core Octave. The
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
337 following new functions are available for interacting with Java
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
338 directly from Octave:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
339
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
340 debug_java java_matrix_autoconversion
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
341 isjava java_unsigned_autoconversion
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
342 java2mat javaaddpath
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
343 javaArray javaclasspath
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
344 javaMethod javamem
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
345 javaObject javarmpath
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
346 usejava
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
347
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
348 In addition, the following functions that use the Java interface
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
349 are now available (provided that Octave is compiled with support for
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
350 Java enabled):
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
351
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
352 helpdlg listdlg questdlg
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
353 inputdlg msgbox warndlg
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
354
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
355 ** Other new functions added in 3.8.0:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
356
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
357 atan2d erfi lines
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
358 base64_decode expint linsolve
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
359 base64_encode findfigs missing_component_hook
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
360 betaincinv flintmax polyeig
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
361 built_in_docstrings_file fminsearch prefdir
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
362 cmpermute gallery preferences
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
363 cmunique gco readline_re_read_init_file
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
364 colorcube hdl2struct readline_read_init_file
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
365 copyobj history_save rgbplot
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
366 dawson imformats save_default_options
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
367 dblist importdata shrinkfaces
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
368 desktop isaxes splinefit
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
369 doc_cache_create iscolormap stemleaf
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
370 ellipj isequaln strjoin
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
371 ellipke jit_debug struct2hdl
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
372 erfcinv jit_enable tetramesh
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
373 jit_startcnt waterfall
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
374
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
375 ** Deprecated functions.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
376
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
377 The following functions were deprecated in Octave 3.4 and have been
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
378 removed from Octave 3.8.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
379
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
380 autocor dispatch is_global setstr
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
381 autocov fstat krylovb strerror
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
382 betai gammai perror values
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
383 cellidx glpkmex replot
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
384 cquad is_duplicate_entry saveimage
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
385
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
386 The following functions have been deprecated in Octave 3.8 and will
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
387 be removed from Octave 3.12 (or whatever version is the second major
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
388 release after 3.8):
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
389
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
390 default_save_options java_new
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
391 gen_doc_cache java_set
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
392 interp1q java_unsigned_conversion
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
393 isequalwithequalnans javafields
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
394 java_convert_matrix javamethods
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
395 java_debug re_read_readline_init_file
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
396 java_get read_readline_init_file
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
397 java_invoke saving_history
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
398
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
399
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
400 The following keywords have been deprecated in Octave 3.8 and will
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
401 be removed from Octave 3.12 (or whatever version is the second major
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
402 release after 3.8):
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
403
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
404 static
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
405
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
406 The following configuration variables have been deprecated in Octave
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
407 3.8 and will be removed from Octave 3.12 (or whatever version is the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
408 second major release after 3.8):
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
409
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
410 CC_VERSION (now GCC_VERSION)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
411 CXX_VERSION (now GXX_VERSION)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
412
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
413 The internal class Octave_map has been deprecated in Octave 3.8 and
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
414 will be removed from Octave 3.12 (or whatever version is the second
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
415 major release after 3.8). Replacement classes are octave_map
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
416 (struct array) or octave_scalar_map for a single structure.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
417 </pre>