3403
|
1 % Copyright (C) 1996, 1997 John W. Eaton |
|
2 % This is part of the Octave manual. |
|
3 % For copying conditions, see the file gpl.texi. |
|
4 |
|
5 \input texinfo |
|
6 @setfilename octave.info |
|
7 |
|
8 @ifinfo |
|
9 @format |
|
10 START-INFO-DIR-ENTRY |
|
11 * Octave: (octave). Interactive language for numerical computations. |
|
12 END-INFO-DIR-ENTRY |
|
13 @end format |
|
14 @end ifinfo |
|
15 |
|
16 @c Settings for printing on 8-1/2 by 11 inch paper: |
|
17 @c ----------------------------------------------- |
|
18 |
|
19 @setchapternewpage odd |
|
20 |
|
21 @c Settings for small book format: |
|
22 @c ------------------------------ |
|
23 |
|
24 @ignore |
|
25 @smallbook |
|
26 @setchapternewpage odd |
|
27 @finalout |
|
28 @iftex |
|
29 @cropmarks |
|
30 @end iftex |
|
31 @end ignore |
|
32 |
|
33 @defindex op |
|
34 |
|
35 @c Things like the Octave version number are defined in conf.texi. |
|
36 @c This file doesn't include a chapter, so it must not be included |
|
37 @c if you want to run the Emacs function texinfo-multiple-files-update. |
|
38 |
|
39 @include conf.texi |
|
40 |
|
41 @settitle GNU Octave |
|
42 |
|
43 @ifinfo |
|
44 |
|
45 Copyright (C) 1996, 1997 John W. Eaton. |
|
46 |
|
47 Permission is granted to make and distribute verbatim copies of |
|
48 this manual provided the copyright notice and this permission notice |
|
49 are preserved on all copies. |
|
50 |
|
51 @ignore |
|
52 Permission is granted to process this file through Tex and print the |
|
53 results, provided the printed document carries copying permission |
|
54 notice identical to this one except for the removal of this paragraph |
|
55 (this paragraph not being relevant to the printed manual). |
|
56 |
|
57 @end ignore |
|
58 Permission is granted to copy and distribute modified versions of |
|
59 this manual under the conditions for verbatim copying, provided that |
|
60 the entire resulting derived work is distributed under the terms of |
|
61 a permission notice identical to this one. |
|
62 |
|
63 Permission is granted to copy and distribute translations of this |
|
64 manual into another language, under the above conditions for |
|
65 modified versions. |
|
66 @end ifinfo |
|
67 |
|
68 @titlepage |
|
69 @title GNU Octave |
|
70 @subtitle A high-level interactive language for numerical computations |
|
71 @subtitle Edition 3 for Octave version @value{VERSION} |
|
72 @subtitle February 1997 |
|
73 @author John W. Eaton |
|
74 @page |
|
75 @vskip 0pt plus 1filll |
|
76 Copyright @copyright{} 1996, 1997 John W. Eaton. |
|
77 |
|
78 This is the third edition of the Octave documentation, and is consistent |
|
79 with version @value{VERSION} of Octave. |
|
80 |
|
81 Permission is granted to make and distribute verbatim copies of |
|
82 this manual provided the copyright notice and this permission notice |
|
83 are preserved on all copies. |
|
84 |
|
85 Permission is granted to copy and distribute modified versions of this |
|
86 manual under the conditions for verbatim copying, provided that the entire |
|
87 resulting derived work is distributed under the terms of a permission |
|
88 notice identical to this one. |
|
89 |
|
90 Permission is granted to copy and distribute translations of this manual |
|
91 into another language, under the same conditions as for modified versions. |
|
92 |
|
93 Portions of this document have been adapted from the @code{gawk}, |
|
94 @code{readline}, @code{gcc}, and C library manuals, published by the Free |
|
95 Software Foundation, 59 Temple Place---Suite 330, Boston, MA |
|
96 02111--1307, USA. |
|
97 @end titlepage |
|
98 |
|
99 @ifinfo |
|
100 @node Top, Preface, (dir), (dir) |
|
101 @top |
|
102 |
|
103 This manual documents how to run, install and port GNU Octave, as well |
|
104 as its new features and incompatibilities, and how to report bugs. |
|
105 It corresponds to GNU Octave version @value{VERSION}. |
|
106 @end ifinfo |
|
107 |
|
108 @menu |
|
109 * Preface:: |
|
110 * Introduction:: A brief introduction to Octave. |
|
111 * Getting Started:: |
|
112 * Data Types:: |
|
113 * Numeric Data Types:: |
|
114 * Strings:: |
|
115 * Data Structures:: |
|
116 * Variables:: |
|
117 * Expressions:: Expressions. |
|
118 * Evaluation:: |
|
119 * Statements:: Looping and program flow control. |
|
120 * Functions and Scripts:: |
|
121 * Error Handling:: |
|
122 * Input and Output:: |
|
123 * Plotting:: |
|
124 * Matrix Manipulation:: |
|
125 * Arithmetic:: |
|
126 * Linear Algebra:: |
|
127 * Nonlinear Equations:: |
|
128 * Quadrature:: |
|
129 * Differential Equations:: |
|
130 * Optimization:: |
|
131 * Statistics:: |
|
132 * Sets:: |
|
133 * Polynomial Manipulations:: |
|
134 * Control Theory:: |
|
135 * Signal Processing:: |
|
136 * Image Processing:: |
|
137 * Audio Processing:: |
|
138 * System Utilities:: |
|
139 * Tips:: |
|
140 * Trouble:: If you have trouble installing Octave. |
|
141 * Installation:: How to configure, compile and install Octave. |
|
142 * Emacs:: |
|
143 * Grammar:: |
|
144 * Copying:: The GNU General Public License. |
|
145 * Concept Index:: An item for each concept. |
|
146 * Variable Index:: An item for each documented variable. |
|
147 * Function Index:: An item for each documented function. |
|
148 * Operator Index:: An item for each documented operator. |
|
149 |
|
150 |
|
151 @detailmenu |
|
152 --- The Detailed Node Listing --- |
|
153 |
|
154 Preface |
|
155 |
|
156 * Acknowledgements:: |
|
157 * How You Can Contribute to Octave:: |
|
158 * Distribution:: |
|
159 |
|
160 A Brief Introduction to Octave |
|
161 |
|
162 * Running Octave:: |
|
163 * Simple Examples:: |
|
164 * Conventions:: |
|
165 |
|
166 Conventions |
|
167 |
|
168 * Fonts:: |
|
169 * Evaluation Notation:: |
|
170 * Printing Notation:: |
|
171 * Error Messages:: |
|
172 * Format of Descriptions:: |
|
173 |
|
174 Format of Descriptions |
|
175 |
|
176 * A Sample Function Description:: |
|
177 * A Sample Command Description:: |
|
178 * A Sample Variable Description:: |
|
179 |
|
180 Getting Started |
|
181 |
|
182 * Invoking Octave:: |
|
183 * Quitting Octave:: |
|
184 * Getting Help:: |
|
185 * Command Line Editing:: |
|
186 * Errors:: |
|
187 * Executable Octave Programs:: |
|
188 * Comments:: |
|
189 |
|
190 Invoking Octave |
|
191 |
|
192 * Command Line Options:: |
|
193 * Startup Files:: |
|
194 |
|
195 Command Line Editing |
|
196 |
|
197 * Cursor Motion:: |
|
198 * Killing and Yanking:: |
|
199 * Commands For Text:: |
|
200 * Commands For Completion:: |
|
201 * Commands For History:: |
|
202 * Customizing the Prompt:: |
|
203 * Diary and Echo Commands:: |
|
204 |
|
205 Data Types |
|
206 |
|
207 * Built-in Data Types:: |
|
208 * User-defined Data Types:: |
|
209 * Object Sizes:: |
|
210 |
|
211 Built-in Data Types |
|
212 |
|
213 * Numeric Objects:: |
|
214 * String Objects:: |
|
215 * Data Structure Objects:: |
|
216 |
|
217 Numeric Data Types |
|
218 |
|
219 * Matrices:: |
|
220 * Ranges:: |
|
221 * Predicates for Numeric Objects:: |
|
222 |
|
223 Matrices |
|
224 |
|
225 * Empty Matrices:: |
|
226 |
|
227 Strings |
|
228 |
|
229 * Creating Strings:: |
|
230 * Searching and Replacing:: |
|
231 * String Conversions:: |
|
232 * Character Class Functions:: |
|
233 |
|
234 Variables |
|
235 |
|
236 * Global Variables:: |
|
237 * Status of Variables:: |
|
238 * Summary of Built-in Variables:: |
|
239 * Defaults from the Environment:: |
|
240 |
|
241 Expressions |
|
242 |
|
243 * Index Expressions:: |
|
244 * Calling Functions:: |
|
245 * Arithmetic Ops:: |
|
246 * Comparison Ops:: |
|
247 * Boolean Expressions:: |
|
248 * Assignment Ops:: |
|
249 * Increment Ops:: |
|
250 * Operator Precedence:: |
|
251 |
|
252 Calling Functions |
|
253 |
|
254 * Call by Value:: |
|
255 * Recursion:: |
|
256 |
|
257 Boolean Expressions |
|
258 |
|
259 * Element-by-element Boolean Operators:: |
|
260 * Short-circuit Boolean Operators:: |
|
261 |
|
262 Statements |
|
263 |
|
264 * The if Statement:: |
|
265 * The switch Statement:: |
|
266 * The while Statement:: |
|
267 * The for Statement:: |
|
268 * The break Statement:: |
|
269 * The continue Statement:: |
|
270 * The unwind_protect Statement:: |
|
271 * The try Statement:: |
|
272 * Continuation Lines:: |
|
273 |
|
274 The @code{for} Statement |
|
275 |
|
276 * Looping Over Structure Elements:: |
|
277 |
|
278 Functions and Script Files |
|
279 |
|
280 * Defining Functions:: |
|
281 * Multiple Return Values:: |
|
282 * Variable-length Argument Lists:: |
|
283 * Variable-length Return Lists:: |
|
284 * Returning From a Function:: |
|
285 * Function Files:: |
|
286 * Script Files:: |
|
287 * Dynamically Linked Functions:: |
|
288 * Organization of Functions:: |
|
289 |
|
290 Input and Output |
|
291 |
|
292 * Basic Input and Output:: |
|
293 * C-Style I/O Functions:: |
|
294 |
|
295 Basic Input and Output |
|
296 |
|
297 * Terminal Output:: |
|
298 * Terminal Input:: |
|
299 * Simple File I/O:: |
|
300 |
|
301 C-Style I/O Functions |
|
302 |
|
303 * Opening and Closing Files:: |
|
304 * Simple Output:: |
|
305 * Line-Oriented Input:: |
|
306 * Formatted Output:: |
|
307 * Output Conversion for Matrices:: |
|
308 * Output Conversion Syntax:: |
|
309 * Table of Output Conversions:: |
|
310 * Integer Conversions:: |
|
311 * Floating-Point Conversions:: Other Output Conversions:: |
|
312 * Other Output Conversions:: |
|
313 * Formatted Input:: |
|
314 * Input Conversion Syntax:: |
|
315 * Table of Input Conversions:: |
|
316 * Numeric Input Conversions:: |
|
317 * String Input Conversions:: |
|
318 * Binary I/O:: |
|
319 * Temporary Files:: |
|
320 * EOF and Errors:: |
|
321 * File Positioning:: |
|
322 |
|
323 Plotting |
|
324 |
|
325 * Two-Dimensional Plotting:: |
|
326 * Specialized Two-Dimensional Plots:: |
|
327 * Three-Dimensional Plotting:: |
|
328 * Plot Annotations:: |
|
329 * Multiple Plots on One Page:: |
|
330 |
|
331 Matrix Manipulation |
|
332 |
|
333 * Finding Elements and Checking Conditions:: |
|
334 * Rearranging Matrices:: |
|
335 * Special Utility Matrices:: |
|
336 * Famous Matrices:: |
|
337 |
|
338 Arithmetic |
|
339 |
|
340 * Utility Functions:: |
|
341 * Complex Arithmetic:: |
|
342 * Trigonometry:: |
|
343 * Sums and Products:: |
|
344 * Special Functions:: |
|
345 * Mathematical Constants:: |
|
346 |
|
347 Linear Algebra |
|
348 |
|
349 * Basic Matrix Functions:: |
|
350 * Matrix Factorizations:: |
|
351 * Functions of a Matrix:: |
|
352 |
|
353 Quadrature |
|
354 |
|
355 * Functions of One Variable:: |
|
356 * Orthogonal Collocation:: |
|
357 |
|
358 Differential Equations |
|
359 |
|
360 * Ordinary Differential Equations:: |
|
361 * Differential-Algebraic Equations:: |
|
362 |
|
363 Optimization |
|
364 |
|
365 * Quadratic Programming:: |
|
366 * Nonlinear Programming:: |
|
367 * Linear Least Squares:: |
|
368 |
|
369 Control Theory |
|
370 |
|
371 * sysstruct:: |
|
372 * sysinterface:: |
|
373 * sysdisp:: |
|
374 * blockdiag:: |
|
375 * numerical:: |
|
376 * sysprop:: |
|
377 * systime:: |
|
378 * sysfreq:: |
|
379 * cacsd:: |
|
380 * misc:: |
|
381 |
|
382 System Data Structure |
|
383 |
|
384 * sysstructvars:: |
|
385 * sysstructtf:: |
|
386 * sysstructzp:: |
|
387 * sysstructss:: |
|
388 |
|
389 System Construction and Interface Functions |
|
390 |
|
391 * fir2sys:: |
|
392 * ss2sys:: |
|
393 * tf2sys:: |
|
394 * zp2sys:: |
|
395 * structaccess:: |
|
396 * structintern:: |
|
397 |
|
398 System Utilities |
|
399 |
|
400 * Timing Utilities:: |
|
401 * Filesystem Utilities:: |
|
402 * Controlling Subprocesses:: |
|
403 * Process ID Information:: |
|
404 * Environment Variables:: |
|
405 * Current Working Directory:: |
|
406 * Password Database Functions:: |
|
407 * Group Database Functions:: |
|
408 * System Information:: |
|
409 |
|
410 Tips and Standards |
|
411 |
|
412 * Style Tips:: Writing clean and robust programs. |
|
413 * Coding Tips:: Making code run faster. |
|
414 * Documentation Tips:: Writing readable documentation strings. |
|
415 * Comment Tips:: Conventions for writing comments. |
|
416 * Function Headers:: Standard headers for functions. |
|
417 |
|
418 Known Causes of Trouble with Octave |
|
419 |
|
420 * Actual Bugs:: Bugs we will fix later. |
|
421 * Reporting Bugs:: |
|
422 * Bug Criteria:: |
|
423 * Bug Lists:: |
|
424 * Bug Reporting:: |
|
425 * Sending Patches:: |
|
426 * Service:: |
|
427 |
|
428 Reporting Bugs |
|
429 |
|
430 * Bug Criteria:: |
|
431 * Where: Bug Lists. Where to send your bug report. |
|
432 * Reporting: Bug Reporting. How to report a bug effectively. |
|
433 * Patches: Sending Patches. How to send a patch for Octave. |
|
434 |
|
435 Installing Octave |
|
436 |
|
437 * Installation Problems:: |
|
438 * Binary Distributions:: |
|
439 |
|
440 Binary Distributions |
|
441 |
|
442 * Installing Octave from a Binary Distribution:: |
|
443 * Creating a Binary Distribution:: |
|
444 |
|
445 Emacs Octave Support |
|
446 |
|
447 * Installing EOS:: |
|
448 * Using Octave Mode:: |
|
449 * Running Octave From Within Emacs:: |
|
450 * Using the Emacs Info Reader for Octave:: |
|
451 |
|
452 Grammar |
|
453 |
|
454 * Keywords:: |
|
455 |
|
456 @end detailmenu |
|
457 @end menu |
|
458 |
|
459 @include preface.texi |
|
460 @include intro.texi |
|
461 @include basics.texi |
|
462 @include data.texi |
|
463 @include numbers.texi |
|
464 @include strings.texi |
|
465 @include struct.texi |
|
466 @include var.texi |
|
467 @include expr.texi |
|
468 @include eval.texi |
|
469 @include stmt.texi |
|
470 @include func.texi |
|
471 @include errors.texi |
|
472 @include io.texi |
|
473 @include plot.texi |
|
474 @include matrix.texi |
|
475 @include arith.texi |
|
476 @include linalg.texi |
|
477 @include nonlin.texi |
|
478 @include quad.texi |
|
479 @include diffeq.texi |
|
480 @include optim.texi |
|
481 @include stats.texi |
|
482 @include set.texi |
|
483 @include poly.texi |
|
484 @include control.texi |
|
485 @include signal.texi |
|
486 @include image.texi |
|
487 @include audio.texi |
|
488 @include system.texi |
|
489 |
|
490 @c maybe add again later, if anyone every writes any really interesting |
|
491 @c fun stuff for Octave. |
|
492 @c |
|
493 @c @include amuse.texi |
|
494 |
|
495 @c Appendices start here. Installation and bugs have to go before the |
|
496 @c readline and Info appendices because we want to have separate indices |
|
497 @c for them, and there appears to be no way to go back to the original |
|
498 @c set of indices once a redirection has taken place. |
|
499 |
|
500 @include tips.texi |
|
501 @include bugs.texi |
|
502 @include install.texi |
|
503 @include emacs.texi |
|
504 @include grammar.texi |
|
505 @include gpl.texi |
|
506 |
|
507 @include cp-idx.texi |
|
508 @include vr-idx.texi |
|
509 @include fn-idx.texi |
|
510 @include op-idx.texi |
|
511 |
|
512 @contents |
|
513 |
|
514 @bye |