matlab中smooth函数,改写成C/C++语句