Introduction - If you have any usage issues, please Google them yourself
Dynamic programming algorithm for the sequence (prior to seeking the minimum value) algorithm matlab to achieve, as well as a numerical example, there is a reference pdf document, suitable for beginners, there are my personal notes that