1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
3
<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
4
original version by: Nikos Drakos, CBLU, University of Leeds
5
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
6
* with significant contributions from:
7
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
11
<META NAME="description" CONTENT="Curve ">
12
<META NAME="keywords" CONTENT="main">
13
<META NAME="resource-type" CONTENT="document">
14
<META NAME="distribution" CONTENT="global">
16
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
17
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
19
<LINK REL="STYLESHEET" HREF="main.css">
23
<BODY bgcolor="#FFFFFF">
25
<!--Table of Child-Links-->
26
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
29
<LI><A NAME="tex2html2859"
30
HREF="CURV_f.htm#SECTION00517100000000000000">Library</A>
31
<LI><A NAME="tex2html2860"
32
HREF="CURV_f.htm#SECTION00517200000000000000">Description</A>
33
<LI><A NAME="tex2html2861"
34
HREF="CURV_f.htm#SECTION00517300000000000000">Default properties</A>
35
<LI><A NAME="tex2html2862"
36
HREF="CURV_f.htm#SECTION00517400000000000000">Interfacing function</A>
37
<LI><A NAME="tex2html2863"
38
HREF="CURV_f.htm#SECTION00517500000000000000">Computational function (type 0)</A>
40
<!--End of Table of Child-Links-->
43
<H2><A NAME="SECTION00517000000000000000"></A><A NAME="CURV_f"></A>
49
$\epsfig{file=CURV_f.eps,width=90.00pt}$
52
WIDTH="143" HEIGHT="161" ALIGN="BOTTOM" BORDER="0"
54
ALT="\epsfig{file=CURV_f.eps,width=90.00pt}">
56
<H3><font color="blue"><A NAME="SECTION00517100000000000000">
61
<H3><font color="blue"><A NAME="SECTION00517200000000000000">
64
This block defines a tabulated function of time. Between mesh points
65
block performs a linear interpolation. Outside tabulation block
66
outputs last tabulated value. User may define the tabulation of the
67
function using a curve editor.
69
<H3><font color="blue"><A NAME="SECTION00517300000000000000">
70
Default properties</A>
74
<LI>always active: yes
76
<LI>direct-feedthrough: no
82
<LI>number/sizes of inputs: 0 /
84
<LI>number/sizes of outputs: 1 / 1
86
<LI>number/sizes of activation inputs: 0 /
88
<LI>number/sizes of activation outputs: 0 /
90
<LI>continuous-time state: no
92
<LI>discrete-time state: no
94
<LI>name of computational function: <EM>intplt</EM>
97
<H3><font color="blue"><A NAME="SECTION00517400000000000000">
98
Interfacing function</A>
100
<TT>scilab/macros/scicos_blocks/sources/CURV_f.sci</TT>
102
<H3><font color="blue"><A NAME="SECTION00517500000000000000">
103
Computational function (type 0)</A>
106
<PRE> subroutine intplt(flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec,
107
& rpar,nrpar,ipar,nipar,u,nu,y,ny)
110
c Scicos block simulator
111
c y=f(t) for f a tabulated function from R to R^ny
113
c ipar(1) : np number of mesh points
114
c rpar(1:ny+1,1:np) : matrix of mesh point coordinates
115
c first row contains t coordinate mesh points
116
c next rows contains y coordinates mesh points
117
c (one row for each output)
119
double precision t,xd(*),x(*),z(*),tvec(*),rpar(*),u(*),y(*)
120
integer flag,nevprt,nx,nz,ntvec,nrpar,ipar(*)
126
call intp(t,rpar(1),rpar(1+np),ny,np,y)