Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

Please note that the recommended version of Scilab is 6.1.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Differential Equations, Integration > ode_discrete

ode_discrete

呼び出し手順

`y=ode("discrete",y0,k0,kvect,f)`

y0

t0

f

k0

kvect

説明

(最初の引数を`"discrete"`とする ) この構文により,`ode`は 初期状態量 `y(k0)` から再帰的に `y(k+1)=f(k,y(k))`を計算し, `kvect`の中にある`k`について `y(k)`を返します. `kvect(1)``k0`以上である 必要があります.

例

```y1=[1;2;3]; deff("yp=a_function(k,y)","yp=A*y+B*u(k)")
A=diag([0.2,0.5,0.9]); B=[1;1;1];u=1:10;n=5;
y=ode("discrete",y1,1,1:n,a_function);
y(:,2)-(A*y1+B*u(1))

// ここで, [y3,y5,y7,y9] で y を評価します
y=ode("discrete",y1,1,3:2:9,a_function)```

参照

• ode — 常微分方程式ソルバ

Comments

Add a comment:
Please login to comment this page.

 Report an issue << ode Differential Equations, Integration ode_optional_output >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Fri Apr 11 14:18:54 CEST 2014