我想问一下像这样的动态问题用MATLAB怎样实现?

图片说明图片说明

你这个是线性规划,而不是动态规划

https://www.doc88.com/p-6061500458720.html