annotate pages/NEWS-3.md @ 216:c8126c010d67

pages: strip unnecessary "menu: false".
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 15 Sep 2020 14:51:27 +0900
parents dedb85c54245
children e69093ab4992
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
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
4 permalink: NEWS-3.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 21, 2007
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
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
13 <ul>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
14 <li>Compatibility with Matlab graphics is much better. We now
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
15 have some graphics features that work like Matlab's Handle
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
16 Graphics (tm):
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
17 <ul>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
18 <li> You can make a subplot and then use the print function to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
19 generate file with the plot.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
20
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
21 <li> RGB line colors are supported if you use gnuplot 4.2. Octave
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
22 can still use gnuplot 4.0, but there is no way to set arbitrary
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
23 line colors with it when using the Matlab-style plot functions.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
24 There never was any way to do this reliably with older versions
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
25 of gnuplot (whether run from Octave or not) since it only
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
26 provided a limited set to choose from, and they were terminal
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
27 dependent, so choosing color 1 with the X11 terminal would be
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
28 different from color 1 with the PostScript terminal. Valid RGB
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
29 colors for gnuplot 4.0 are the eight possible combinations of 0
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
30 and 1 for the R, G and B values. Invalid values are all mapped
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
31 to the same color.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
32 <p>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
33 This also affects patch objects used in the bar, countour, meshc
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
34 and surfc functions, where the bars and contours will be
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
35 monochrome. A workaround for this is to type "colormap gmap40"
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
36 that loads a colormap that in many cases will be adequate for
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
37 simple bar and contour plots.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
38
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
39 <li> You can control the width of lines using (for example):
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
40 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
41 line (x, y, "linewidth", 4, "color", [1, 0, 0.5]);
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
42 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
43 (this also shows the color feature).</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
44
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
45 <li> With gnuplot 4.2, image data is plotted with gnuplot and may be
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
46 combined with other 2-d plot data.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
47
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
48 <li> Lines for contour plots are generated with an Octave function, so
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
49 contour plots are now 2-d plots instead of special 3-d plots, and
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
50 this allows you to plot additional 2-d data on top of a contour
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
51 plot.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
52
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
53 <li> With the gnuplot "extended" terminals the TeX interpreter is
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
54 emulated. However, this means that the TeX interpreter is only
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
55 supported on the postscript terminals with gnuplot 4.0. Under
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
56 gnuplot 4.2 the terminals aqua, dumb, png, jpeg, gif, pm, windows,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
57 wxt, svg and x11 are supported as well.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
58
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
59 <li> The following plot commands are now considered obsolete and will
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
60 be removed from a future version of Octave:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
61 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
62 __gnuplot_set__
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
63 __gnuplot_show__
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
64 __gnuplot_plot__
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
65 __gnuplot_splot__
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
66 __gnuplot_replot__
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
67 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
68 Additionally, these functions no longer have any effect on plots
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
69 created with the Matlab-style plot commands
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
70 (<tt>plot</tt>, <tt>line</tt>, <tt>mesh</tt>, <tt>semilogx</tt>,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
71 etc.).
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
72
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
73 <li> Plot property values are not extensively checked. Specifying
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
74 invalid property values may produce unpredictible results.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
75
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
76 <li> Octave now sends data over the same pipe that is used to send
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
77 commands to gnuplot. While this avoids the problem of
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
78 cluttering /tmp with data files, it is no longer possible to use
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
79 the mouse to zoom in on plots. This is a limitation of gnuplot,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
80 which is unable to zoom when the data it plots is not stored in
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
81 a file. Some work has been done to fix this problem in newer
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
82 versions of gnuplot (> 4.2.2). See for example,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
83 <a href="http://www.nabble.com/zooming-of-inline-data-tf4357017.html#a12416496">this thread</a> on the gnuplot development list.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
84 </ul></li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
85
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
86
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
87 <li>The way Octave handles search paths has changed. Instead of
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
88 setting the built-in variable <tt>LOADPATH</tt>, you must
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
89 use <tt>addpath</tt>, <tt>rmpath</tt>, or <tt>path</tt> to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
90 manipulate the function search path. These functions will
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
91 maintain <tt>"."</tt> at the head of the path, for compatibility
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
92 with Matlab.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
93 <p>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
94 Leading, trailing or doubled colons are no longer special.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
95 Now, all elements of the search path are explicitly included in
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
96 the path when Octave starts. To display the path, use
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
97 the <tt>path</tt> function.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
98 <p>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
99 Path elements that end in <tt>//</tt> are no longer searched recursively.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
100 Instead, you may use addpath and the genpath function to add an
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
101 entire directory tree to the path. For example,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
102 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
103 addpath (genpath ("~/octave"));
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
104 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
105 will add ~/octave and all directories below it to the head of the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
106 path.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
107
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
108
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
109 <li>Previous versions of Octave had a number of built-in variables to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
110 control warnings (for example, <tt>warn_divide_by_zero</tt>). These
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
111 variables have been replaced by warning identifiers that are used
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
112 with the warning function to control the state of warnings.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
113 <p>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
114 For example, instead of writing
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
115 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
116 warn_divide_by_zero = false;
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
117 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
118 to disable divide-by-zero warnings, you should write
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
119 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
120 warning ("off", "Octave:divide-by-zero");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
121 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
122 You may use the same technique in your own code to control
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
123 warnings. For example, you can use
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
124 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
125 warning ("My-package:phase-of-the-moon",
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
126 "the phase of the moon could cause trouble today");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
127 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
128 to allow users to control this warning using the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
129 <tt>"My-package:phase-of-the-moon"</tt> warning identifier.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
130 <p>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
131 You may also enable or disable all warnings, or turn them into
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
132 errors:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
133 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
134 warning ("on", "all");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
135 warning ("off", "all");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
136 warning ("error", "Octave:divide-by-zero");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
137 warning ("error", "all");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
138 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
139 You can query the state of current warnings using
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
140 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
141 warning ("query", ID)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
142 warning ("query")
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
143 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
144 (only those warning IDs which have been explicitly set are
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
145 returned).
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
146 <p>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
147 A partial list and description of warning identifiers is available
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
148 using
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
149 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
150 help warning_ids
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
151 </pre></li>
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
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
154 <li>All built-in variables have been converted to functions. This
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
155 change simplifies the interpreter and allows a consistent
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
156 interface to internal variables for user-defined packages and the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
157 core functions distributed with Octave. In most cases, code that
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
158 simply accesses internal variables does not need to change. Code
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
159 that sets internal variables will change. For example, instead of
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
160 writing
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
161 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
162 PS1 = ">> ";
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
163 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
164 you will need to write
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
165 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
166 PS1 (">> ");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
167 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
168 If you need write code that will run in both old and new versions
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
169 of Octave, you can use something like
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
170 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
171 if (exist ("OCTAVE_VERSION") == 5)
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
172 ## New:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
173 PS1 (">> ");
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
174 else
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
175 ## Old:
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
176 PS1 = ">> ";
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
177 endif
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
178 </pre></li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
179
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
180
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
181 <li>For compatibility with Matlab, the output order of Octave's
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
182 <tt>"system"</tt> function has changed from
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
183 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
184 [output, status] = system (cmd);
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
185 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
186 to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
187 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
188 [status, output] = system (cmd);
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
189 </pre></li>
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
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
192 <li>For compatibility with Matlab, <tt>normcdf</tt>, <tt>norminv</tt>,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
193 <tt>normpdf</tt>, and <tt>normrnd</tt> have been modified to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
194 compute distributions using the standard deviation instead of the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
195 variance.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
196
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
197
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
198 <li>For compatibility with Matlab, the output of Octave's fsolve
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
199 function has been changed from
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
200 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
201 [x, info, msg] = fsolve (...);
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
202 </pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
203 to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
204 <pre>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
205 [x, fval, info] = fsolve (...);
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
206 </pre></li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
207
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
208
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
209 <li>For compatibility with Matlab, <tt>normcdf</tt>, <tt>norminv</tt>,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
210 <tt>normpdf</tt>, and <tt>normrnd</tt> have been modified to
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
211 compute distributions using the standard deviation instead of the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
212 variance.</li>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
213
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
214
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
215 <li>For compatibility with
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
216 Matlab, <tt>gamcdf</tt>, <tt>gaminv</tt>, <tt>gampdf</tt>,
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
217 <tt>gamrnd</tt>, <tt>expcdf</tt>, <tt>expinv</tt>, <tt>exppdf</tt>
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
218 and <tt>exprnd</tt> have been modified to compute the
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
219 distributions using the standard scale factor rather than one over
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
220 the scale factor.
dedb85c54245 Reorganize homepage.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
diff changeset
221 </ul>