sinterp.m
来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 16 行
M
16 行
function [yi] = sinterp(y,n2)%SINTERP Spline-interpolates a column vector to a new length.%% YI=SINTERP(Y,NI) spline-interpolates the column vector Y to the% new length NI.% _________________________________________________________________% This is part of JLAB --- type 'help jlab' for more information (C)% 1993, 2004 J.M. Lilly --- type 'help jlab_license' for detailsn1=length(y);x=zeros(1,n1);xi=zeros(1,n2);x=[1:n1]';xi=[1:(n1-1)/(n2-1):n1]';yi=interp1(x,y,xi,'spline'); %This is much better than linear
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?