matlab linspace()函数 linspace()函数: K>> X=linspace(1,3,4) X = 1.0000 1.6667 2.3333 3.0000 说明:1是开始的数字,3是结束的数字,4代表1和3之间取4个数字,包含1和3.