书籍《simulink仿真及代码生成技术入门到精通》

1. Model

lookup and interpolation using prelookup
lookup and interpolation using prelookup
lookup and interpolation using prelookup

2. Interpolation using Prelookup

lookup and interpolation using prelookup
lookup and interpolation using prelookup

比如设定数列为:[0 5 10 20 50 100]
当输入为55时,输出k = 4(下标从0开始计)---->也就是它能恰好排在谁的后面。
f = ( 55 - 50)/(100 - 50) = 0.1

相关文章: