📄 sinterp.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -