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