Change language to:
English - Français - Português - Русский

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

Scilab help >> 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 — 常微分方程式ソルバ
 Report an issue << ode Differential Equations, Integration ode_optional_output >>

 Copyright (c) 2022-2023 (Dassault Systèmes)Copyright (c) 2017-2022 (ESI Group)Copyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Mon Oct 01 17:40:22 CEST 2012