File: mtlb_diff.man

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (67 lines) | stat: -rw-r--r-- 983 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.TH "mtlb_diff" 2 " June 6th 1997" "Fractales Group" "Scilab Function"
.so ../sci.an
.SH NAME
mtlb_diff - Difference and approximate derivative
.sp
Author: Paulo Goncalves
.sp
Difference and approximate derivative. If x is a matrix, the differences are computed columnwise.
.sp
.sp
.SH Usage
.sp
.ft CR
.nf
[y] = mtlb_diff(x[,order])
.fi 
.ec
.ft P
.sp
.SH Input parameters


.RS

.TP
o 
\fBx\fP : real valued vector or matrix \f(CR[\fPrx,cx\f(CR]\fP

.TP
o 
\fBorder\fP : positive integer specifying the difference order. Default value is \fIorder\fP = 1.
.RE

.SH Output parameters


.RS

.TP
o 
\fBy\fP : real valued vector or matrix \f(CR[\fPrx-order,cx\f(CR]\fP 
y = x(order+1:rx,:) - x(1:rx-order,:) ;
.RE

.SH See also:
.SH Example:
\fI Matrix synthesis: \fP 
.sp
.ft CR
.nf
N = 100 ;
t = 0:N-1 ;
x = sin(2*%pi*0.05*t) ; 
.fi 
.ec
.ft P
.sp
\fI approximate 1-st order derivative\fP 
.sp
.ft CR
.nf
y = mtlb_diff(x) ;
plot2d([t(:) t(:)] , [x(:) [y(:);0]]) ;
.fi 
.ec
.ft P
.sp