我想像这样在matlab中创建二叉树:
https://i.stack.imgur.com/W18Qe.png
值由生成:
[Price, Option] = binprice(52, 50, 0.1, 2/12, 1/12, 0.4, 0, 0)
值是:
Price =
52.0000 58.3648 65.5088
0 46.3293 52.0000
0 0 41.2769
Option =
2.0824 0 0
0 4.2620 0
0 0 8.7231
我该怎么做?