|
Octave Resmi Belgeler - Bölüm Özetleri
|
AÇIKLAMA
GNU Octave belgeleri çeviri çalışmaları yeni başlamıştır ve gönüllüler tarafından yürütülmektedir.
Çevirilerin tamamlandıkça erişilebilir olması için başlıklarda şöyle bir notasyon kullanılmıştır:
"Başlık *** ": Henüz hiç çeviri yok
"Başlık ** " : Alt bölümlerin bir kısmı çevirildi.
"Başlık* ": Alt bölümlerin çevirileri tamamlandı fakat dil kontrolü yapılmadı.
GNU Octave dokumantasyonu çevirilerine siz de katılmak isterseniz lütfen iletişime geçiniz. ( İletişim için tıklayınız )
Copyright (C) 1996, 1997, 2007 John W. Eaton. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions. |
-
Sunum**
( 1 Articles )
GNU Octave
öncelikle numerik hesaplamalara yönelik yüksek seviyeli bir dildir. Çoğunlukla
Matlab ile uyumlu bir dil kullanarak lineer (doğrusal) ve lineer olmayan
problemleri numerik olarak çözmeye ve başka numerik deneyler yapmaya elverişli bir
komut satırı arayüzü temin etmektedir.
-
Bölüm 1 - Octave'a Kısa Giriş**
( 3 Articles )
1 Octave’a Kısa Bir Giriş
Bu kılavuz GNU
Octave’ın nasıl kurulacağını, çalıştırılacağını ve kullanılacağını ve hataların
nasıl rapor edileceğini göstermektedir.
GNU Octave
öncelikle numerik hesaplamalara yönelik yüksek düzey bir dildir. Lineer
(doğrusal) ve lineer olmayan problemleri numerik olarak çözmeye ve başka
numerik deneyler yapmaya elverişli bir komut satırı arayüzü temin etmektedir.
Batch-uyumlu bir dil olarak da kullanılabilir.
GNU Octave aynı
zamanda yeniden dağıtımı serbest olan bir yazılımdır. Özgür Yazılım Kurumu
tarafından yayınlandığı üzere GNU Genel Kamu Lisansı (GPL) şartlarına uygun
olarak yeniden dağıtımını yapabilir ve/veya değiştirebilirsiniz. GPL bu
kılavuzda Kopyalama’nın içinde yer almaktadır.
Bu kılavuz Octave
2.9.12+ sürümü ile uyumludur.
-
Bölüm 2 - Octave' a Giriş***
( 7 Articles )
-
Bölüm 3 - Veri Tipleri***
( 0 Articles )
-
Bölüm 4 - Numerik Veri Tipleri ***
( 0 Articles )
A numeric constant may be a scalar, a vector, or a matrix, and it
may contain complex values.
The simplest form of a numeric constant, a scalar, is a single number
that can be an integer, a decimal fraction, a number in scientific
(exponential) notation, or a complex number. Note that by default numeric
constants are represented within Octave in double-precision floating
point format (complex constants are stored as pairs of double-precision
floating point values). It is however possible to represent real
integers as described in Integer Data Types. Here are some examples
of real-valued numeric constants, which all have the same value:
-
Bölüm 5 - Karakter Katarları (Strings)***
( 0 Articles )
-
Bölüm 6 - Veri Yapıları ***
( 0 Articles )
Octave includes support for organizing data in structures. The current
implementation uses an associative array with indices limited to
strings, but the syntax is more like C-style structures. Here are some
examples of using data structures in Octave.
Elements of structures can be of any value type. For example, the three
expressions
-
Bölüm 7 - Hücre Dizileri (Celll Arrays)***
( 0 Articles )
It can be both necessary and convenient to store several variables of
different size or type in one variable. A cell array is a container
class able to do just that. In general cell arrays work just like
N-dimensional arrays, with the exception of the use of `{'
and `}' as allocation and indexing operators.
As an example, the following code creates a cell array containing a
string and a 2-by-2 random matrix
-
Bölüm 8 - Değişkenler ***
( 0 Articles )
Variables let you give names to values and refer to them later. You have
already seen variables in many of the examples. The name of a variable
must be a sequence of letters, digits and underscores, but it may not begin
with a digit. Octave does not enforce a limit on the length of variable
names, but it is seldom useful to have variables with names longer than
about 30 characters. The following are all valid variable names
-
Bölüm 9 - İfadeler ***
( 0 Articles )
Expressions are the basic building block of statements in Octave. An
expression evaluates to a value, which you can print, test, store in a
variable, pass to a function, or assign a new value to a variable with
an assignment operator.
An expression can serve as a statement on its own. Most other kinds of
statements contain one or more expressions which specify data to be
operated on. As in other languages, expressions in Octave include
variables, array references, constants, and function calls, as well as
combinations of these with various operators.
-
Bölüm 10 - Değerlendirme ***
( 0 Articles )
Normally, you evaluate expressions simply by typing them at the Octave
prompt, or by asking Octave to interpret commands that you have saved in
a file.
Sometimes, you may find it necessary to evaluate an expression that has
been computed and stored in a string, which is exactly what the
eval lets you do.
-
Bölüm 11 - Kontrol Yapıları (Statements) ***
( 0 Articles )
Statements may be a simple constant expression or a complicated list of
nested loops and conditional statements.
Control statements such as if, while, and so on
control the flow of execution in Octave programs. All the control
statements start with special keywords such as if and
while, to distinguish them from simple expressions.
Many control statements contain other statements; for example, the
if statement contains another statement which may or may not be
executed.
Each control statement has a corresponding end statement that
marks the end of the end of the control statement. For example, the
keyword endif marks the end of an if statement, and
endwhile marks the end of a while statement. You can use
the keyword end anywhere a more specific end keyword is expected,
but using the more specific keywords is preferred because if you use
them, Octave is able to provide better diagnostics for mismatched or
missing end tokens.
The list of statements contained between keywords like if or
while and the corresponding end statement is called the
body of a control statement.
-
Bölüm 12 - Fonksiyon ve Script Dosyaları ***
( 0 Articles )
Complicated Octave programs can often be simplified by defining
functions. Functions can be defined directly on the command line during
interactive Octave sessions, or in external files, and can be called just
like built-in functions.
-
Bölüm 13 - Hatalar ve Uyarılar ***
( 0 Articles )
Octave includes several functions for printing error and warning
messages. When you write functions that need to take special action
when they encounter abnormal conditions, you should print the error
messages using the functions described in this chapter.
Since many of Octave's functions use these functions, it is also useful
to understand them, so that errors and warnings can be handled.
-
Bölüm 14 - Hata Ayıklama ***
( 0 Articles )
Octave includes a built-in debugger to aid in the development of
scripts. This can be used to interrupt the execution of an Octave script
at a certain point, or when certain conditions are met. Once execution
has stopped, and debug mode is entered, the symbol table at the point
where execution has stopped can be examined and modified to check for
errors.
The normal commandline editing and history functions are available in
debug mode. However, one limitation on the debug mode is that
commands entered at the debug prompt are evaluated as strings, rather
than being handled by the Octave parser. This means that all commands in
debug mode must be contained on a single line. That is, it is alright to
write
-
Bölüm 15 - Girdi ve Çıktılar ***
( 0 Articles )
Octave supports several ways of reading and writing data to or from the
prompt or a file. The most simple functions for data Input and Output
(I/O) are easy to use, but only provides a limited control of how
data is processed. For more control, a set of functions modelled
after the C standard library are also provided by Octave.
-
Bölüm 16 - Grafik Çizimleri ***
( 0 Articles )
-
Bölüm 17 - Matris İşlemleri ***
( 0 Articles )
There are a number of functions available for checking to see if the
elements of a matrix meet some condition, and for rearranging the
elements of a matrix. For example, Octave can easily tell you if all
the elements of a matrix are finite, or are less than some specified
value. Octave can also rotate the elements, extract the upper- or
lower-triangular parts, or sort the columns of a matrix.
-
Bölüm 18 - Aritmetik ***
( 0 Articles )
Unless otherwise noted, all of the functions described in this chapter
will work for real and complex scalar or matrix arguments.
-
Bölüm 19 - Bit İşlemleri ***
( 0 Articles )
Octave provides the following functions for bit twiddling.
— Function File: x = bitset (a, n) — Function File: x = bitset (a, n, v)
-
Bölüm 20 - Lineer (Doğrusal) Cebir ***
( 0 Articles )
This chapter documents the linear algebra functions of Octave.
Reference material for many of these functions may be found in
Golub and Van Loan, Matrix Computations, 2nd Ed., Johns Hopkins,
1989, and in Lapack Users' Guide, SIAM, 1992.
-
Bölüm 21 - Lineer Olmayan Denklemler ***
( 0 Articles )
Octave can solve sets of nonlinear equations of the form
F (x) = 0
using the function fsolve, which is based on the Minpack subroutine hybrd.
— Loadable Function: [x, info, msg] = fsolve (fcn, x0)
-
Bölüm 22 - Sparse Matrices ***
( 0 Articles )
-
Bölüm 23 - Numerik İntegrasyon ***
( 0 Articles )
Octave comes with several built-in functions for computing the integral
of a function numerically. These functions all solve 1-dimensional
integration problems.
-
Bölüm 24 - Diferansiyel Denklemler ***
( 0 Articles )
Octave has built-in functions for solving ordinary differential equations,
and differential-algebraic equations.
All solvers are based on reliable ODE solvers written in Fortran.
-
Bölüm 25 - Optimizasyon ***
( 0 Articles )
Octave comes with support for solving various kinds of optimization
problems. Specifically Octave can solve problems in Linear Programming,
Quadratic Programming, Nonlinear Programming, and Linear Least Squares
Minimization.
-
Bölüm 26 - İstatistik ***
( 0 Articles )
Octave has support for various statistical methods. This includes
basic descriptive statistics, statistical tests, random number generation,
and much more.
The functions that analyze data all assume that multidimensional data
is arranged in a matrix where each row is an observation, and each
column is a variable. So, the matrix defined by
a = [ 0.9, 0.7; 0.1, 0.1; 0.5, 0.4 ];
contains three observations from a two-dimensional distribution.
While this is the default data arrangement, most functions support
different arrangements.
It should be noted that the statistics functions doesn't handle data
containing NaN, NA, or Inf. Such values needs to be handled explicitly.
-
Bölüm 27 - Finansal Fonksiyonlar ***
( 0 Articles )
— Function File: fv (r, n, p, l, method)
Return the future value at the end of period n of an investment
which consists of n payments of p in each period,
assuming an interest rate r.
The optional argument l may be used to specify an
additional lump-sum payment.
The optional argument method may be used ot specify whether the
payments are made at the end ("e", default) or at the
beginning ("b") of each period.
Note that the rate r is specified as a fraction (i.e., 0.05,
not 5 percent).
-
Bölüm 28 - Diziler ***
( 0 Articles )
Octave has a limited set of functions for managing sets of data, where a
set is defined as a collection unique elements. In Octave a set is
represented as a vector of numbers.
-
Bölüm 29 - Polinom İşlemleri ***
( 0 Articles )
In Octave, a polynomial is represented by its coefficients (arranged
in descending order). For example, a vector
$c$
of length
N
p(x) = c(1) x^N + ... + c(N) x + c(N+1).
-
Bölüm 30 - Enterpolasyon ***
( 0 Articles )
-
Bölüm 31 - Geometri ***
( 0 Articles )
— Function File: polyarea (x, y) — Function File: polyarea (x, y, dim)
Determines area of a polygon by triangle method. The variables
x and y define the vertex pairs, and must therefore have
the same shape. Then might be either vectors or arrays. If they are
arrays then the columns of x and y are treated seperately
and an area returned for each.
If the optional dim argument is given, then polyarea works along this dimension of the arrays x and y.
-
Bölüm 32 - Kontrol Teorisi ***
( 0 Articles )
The Octave Control Systems Toolbox (OCST) was initially developed
by Dr. A. Scottedward Hodel
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
with the assistance
of his students
- R. Bruce Tenison
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
,
- David C. Clem,
- John E. Ingram
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
, and
- Kristi McGowan.
-
Bölüm 33 - Sinyal İşleme ***
( 0 Articles )
-
Bölüm 34 - Görüntü İşleme ***
( 0 Articles )
Since an image basically is a matrix Octave is a very powerful
environment for processing and analysing images. To illustrate
how easy it is to do image processing in Octave, the following
example will load an image, smooth it by a 5-by-5 averaging filter,
and compute the gradient of the smoothed image.
-
Bölüm 35 - Ses İşleme ***
( 0 Articles )
Octave provides a few functions for dealing with audio data. An audio
`sample' is a single output value from an A/D converter, i.e., a small
integer number (usually 8 or 16 bits), and audio data is just a series
of such samples. It can be characterized by three parameters: the
sampling rate (measured in samples per second or Hz, e.g. 8000 or
44100), the number of bits per sample (e.g. 8 or 16), and the number of
channels (1 for mono, 2 for stereo, etc.).
-
Bölüm 36 - Kuaterniyonlar ***
( 0 Articles )
Quaternions are hypercomplex numbers used to represent spatial
rotations in three dimensions. This set of routines provides a useful
basis for working with quaternions in Octave. A tutorial is in the
Octave source, scripts/quaternion/quaternion.ps.
-
Bölüm 37 - Sistem Programları ***
( 0 Articles )
This chapter describes the functions that are available to allow you to
get information about what is happening outside of Octave, while it is
still running, and use this information in your program. For example,
you can get information about environment variables, the current time,
and even start other programs from the Octave prompt.
-
Bölüm 38 - Paketler ***
( 0 Articles )
Since Octave is Free Software users are encouraged to share their
programs amongst each other. To aid this sharing Octave supports the
installation of extra packages. The `Octave-Forge' project is a
community-maintained set of packages that can be downloaded and
installed in Octave. At the time of writing the `Octave-Forge' project
can be found on-line at http://octave.sourceforge.net, but
since the Internet is an ever-changing place this may not be true at
the time of reading. Therefore it is recommended to see the Octave
website for an updated reference.
-
Ek A - Dinamik Olarak Bağlı Fonksiyonlar ***
( 0 Articles )
Octave has the possibility of including compiled code as dynamically
linked extensions and then using these extensions as if they were part
of Octave itself. Octave has the option of directly calling C++ code
through its native oct-file interface or C code through its mex
interface. It can also indirectly call functions written in any other
language through a simple wrapper. The reasons to write code in a
compiled language might be either to link to an existing piece of code
and allow it to be used within Octave, or to allow improved performance
for key pieces of code.
Before going further, you should first determine if you really need to
use dynamically linked functions at all. Before proceeding with writing
any dynamically linked function to improve performance you should
address ask yourself
- Can I get the same functionality using the Octave scripting language only.
- Is it thoroughly optimized Octave code? Vectorization of Octave code,
doesn't just make it concise, it generally significantly improves its
performance. Above all, if loops must be used, make sure that the
allocation of space for variables takes place outside the loops using an
assignment to a like matrix or zeros.
- Does it make as much use as possible of existing built-in library
routines? These are highly optimized and many do not carry the overhead
of being interpreted.
- Does writing a dynamically linked function represent useful investment
of your time, relative to staying in Octave?
Also, as oct- and mex-files are dynamically linked to octave, they
introduce to possibility of having Octave abort due to coding errors in
the user code. For example a segmentation violation in the users code
will cause Octave to abort.
-
Ek B - Test ve Demo Fonksiyonları ***
( 0 Articles )
Octave includes a number of functions to allow the integration of testing
and demonstration code in the source code of the functions themselves.
-
Ek C - İpuçları ve Standartlar ***
( 0 Articles )
This chapter describes no additional features of Octave. Instead it
gives advice on making effective use of the features described in the
previous chapters.
-
Ek D - Bazı Sorunların Nedenleri ***
( 0 Articles )
This section describes known problems that affect users of Octave. Most
of these are not Octave bugs per se—if they were, we would fix them.
But the result for a user may be like the result of a bug.
Some of these problems are due to bugs in other software, some are
missing features that are too much work to add, and some are places
where people's opinions differ as to what is best.
-
Ek E - Octave'ı Kurma ***
( 0 Articles )
Here is the procedure for installing Octave from scratch on a Unix
system.
Run the shell script configure. This will determine the features
your system has (or doesn't have) and create a file named
Makefile from each of the files named Makefile.in.
-
Ek F - Emacs Octave Desteği ***
( 0 Articles )
The development of Octave code can greatly be facilitated using Emacs
with Octave mode, a major mode for editing Octave files which can e.g.
automatically indent the code, do some of the typing (with Abbrev mode)
and show keywords, comments, strings, etc. in different faces (with
Font-lock mode on devices that support it).
It is also possible to run Octave from within Emacs, either by directly
entering commands at the prompt in a buffer in Inferior Octave mode, or
by interacting with Octave from within a file with Octave code. This is
useful in particular for debugging Octave code.
Finally, you can convince Octave to use the Emacs info reader for
help -i.
All functionality is provided by the Emacs Lisp package EOS (for “Emacs
Octave Support”). This chapter describes how to set up and use this
package.
Please contact <
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
> if you have any questions
or suggestions on using EOS.
-
Ek G - GNU GENEL KAMU LİSANSI ***
( 0 Articles )
|
|
|
|