annotate NEWS @ 7259:9f02c32eb70d ss-2-9-18

[project @ 2007-12-05 18:02:33 by jwe]
author jwe
date Wed, 05 Dec 2007 18:02:34 +0000
parents e8d953d03f6a
children 72b5e1701da2
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
5814
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
77 ** 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
78 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
79 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
80 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
81 compatibility with Matlab.
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
82
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
83 Leading, trailing or doubled colons are no longer special.
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
84 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
85 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
86 function.
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
87
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
88 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
89 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
90 entire directory tree to the path. For example,
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
91
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
92 addpath (genpath ("~/octave"));
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
93
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
94 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
95 path.
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
96
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 ** 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
99 control warnings (for example, warn_divide_by_zero). These
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
100 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
101 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
102
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
103 For example, instead of writing
2511
9b0dd36714eb [project @ 1996-11-14 02:57:33 by jwe]
jwe
parents: 2496
diff changeset
104
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
105 warn_divide_by_zero = false;
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
106
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
107 to disable divide-by-zero warnings, you should write
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
108
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
109 warning ("off", "Octave:divide-by-zero");
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
110
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
111 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
112 warnings. For example, you can use
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
113
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
114 warning ("My-package:phase-of-the-moon",
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
115 "the phase of the moon could cause trouble today");
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
116
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
117 to allow users to control this warning using the
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
118 "My-package:phase-of-the-moon" warning identifier.
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
119
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
120 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
121 errors:
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
122
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
123 warning ("on", "all");
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
124 warning ("off", "all");
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
125 warning ("error", "Octave:divide-by-zero");
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
126 warning ("error", "all");
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
127
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
128 You can query the state of current warnings using
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
129
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
130 warning ("query", ID)
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
131 warning ("query")
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
132
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
133 (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
134 returned).
2459
0a2cd53db5f9 [project @ 1996-11-03 03:36:01 by jwe]
jwe
parents: 2458
diff changeset
135
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
136 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
137 using
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
138
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
139 help warning_ids
2452
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
140
a28ed603c65c [project @ 1996-10-31 19:49:29 by jwe]
jwe
parents:
diff changeset
141
5814
67bf9b4f2ae2 [project @ 2006-05-11 21:58:34 by jwe]
jwe
parents: 5798
diff changeset
142 ** 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
143 change simplifies the interpreter and allows a consistent
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
144 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
145 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
146 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
147 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
148 writing
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
149
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
150 PS1 = ">> ";
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
151
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
152 you will need to write
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
153
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
154 PS1 (">> ");
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
155
5798
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
156 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
157 of Octave, you can use something like
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
158
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
159 if (exist ("OCTAVE_VERSION") == 5)
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
160 ## New:
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
161 PS1 (">> ");
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
162 else
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
163 ## Old:
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
164 PS1 = ">> ";
7e7ed81f5566 [project @ 2006-05-09 17:24:33 by jwe]
jwe
parents: 5794
diff changeset
165 endif
5794
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
166
1138ced03f14 [project @ 2006-05-08 20:23:04 by jwe]
jwe
parents: 5781
diff changeset
167
5995
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
168 ** 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
169 "system" function has changed from
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
170
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
171 [output, status] = system (cmd);
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
172
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
173 to
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
174
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
175 [status, output] = system (cmd);
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
176
6617
55da54f6c5c2 [project @ 2007-05-14 16:17:46 by jwe]
jwe
parents: 6609
diff changeset
177 ** For compatibility with Matlab, normcdf, norminv, normpdf, and
55da54f6c5c2 [project @ 2007-05-14 16:17:46 by jwe]
jwe
parents: 6609
diff changeset
178 normrnd have been modified to compute distributions using the
55da54f6c5c2 [project @ 2007-05-14 16:17:46 by jwe]
jwe
parents: 6609
diff changeset
179 standard deviation instead of the variance.
5995
9223672bd578 [project @ 2006-09-21 20:09:44 by jwe]
jwe
parents: 5913
diff changeset
180
6777
4775fc1aa728 [project @ 2007-07-18 16:32:51 by dbateman]
dbateman
parents: 6617
diff changeset
181 ** For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
4775fc1aa728 [project @ 2007-07-18 16:32:51 by dbateman]
dbateman
parents: 6617
diff changeset
182 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
183 the distributions using the standard scale factor rather than
4775fc1aa728 [project @ 2007-07-18 16:32:51 by dbateman]
dbateman
parents: 6617
diff changeset
184 one over the scale factor.
4775fc1aa728 [project @ 2007-07-18 16:32:51 by dbateman]
dbateman
parents: 6617
diff changeset
185
5781
faafc2d98b8d [project @ 2006-05-02 19:40:19 by jwe]
jwe
parents: 3482
diff changeset
186 See NEWS.2 for old news.