This example shows how to create a tree with four time levels, two branches per node, and a vector of three elements in each node with each element initialized to NaN.
Number of time levels of the tree, specified as a scalar numeric.
Data Types: double
Number of branches (children) of the nodes in each level, specified as a
1-by- number of levels (NUMLEVELS)
vector.
Data Types: double
Length of the state vectors in each time level, specified as a
1-by-NUMLEVELS vector.
Data Types: double
(Optional) Indicates movement between nodes, specified as a scalar
0 or 1. If Trim =
1, NumPos decreases by
1 when moving from one time level to the next.
Otherwise, if Trim = 0, NumPos does
not decrease.
Data Types: logical
(Optional) Initial value at each node of the tree, specified as a scalar
numeric.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.