annotate NEWS.3 @ 12312:b10ea6efdc58 release-3-4-x ss-3-3-91

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