global M; X=[15.39,539,2.73,539,-95.99,265,2.8,21,0.26872]; y1=X(1)-5:X(1)+5; y2=X(2)-5:X(2)+5; y3=X(3)-1:0.1:X(3)+1; y4=X(4)…
Cubic+Spline 源代码
汇集 Cubic+Spline 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
%exm043_7.m %给定数据对 x0=0:0.1:1; y0=[-.447,1.978,3.11,5.25,5.02,4.66,4.01,4.58,3.45,5.35,9.22]; %采用三次多项式进行插值 xi=0:0.02:1; …
%filename c1_2_2.m M=[466 714 950 1422 1634]; C=[7.04 4.28 3.40 2.54 2.13]; Mi=[500 1000 1500]; pp=spline(M,C); Ci=ppval(pp,M…
spline 100.000000,0.000000,0.000000 92.150863,0.010216,-3.086753 84.301727,0.020433,-4.903675 spline 96.592583,25.881905,0.000…
spline 100.000000,0.000000,0.000000 92.061499,0.052556,-2.305945 84.122999,0.105112,-4.588332 spline 96.592583,25.881905,0.000…
function [yi] = sinterp(y,n2) %SINTERP Spline-interpolates a column vector to a new length. % % YI=SINTERP(Y,NI) spline-interpo…
x=1:5; y=1:3; temps=[82 81 80 82 84;79 63 61 65 81;84 84 82 85 86]; mesh(x,y,temps) pause xi=1:0.2:5; yi=1:0.2:3; zi=inte…
% cub_fn(t): This functions generates a unit cubic function % function y = cub_fn(t) y = (1/6)*t.^3.*stp_fn(t)
1000,0.05, 0, -1,8.71e-003,15,29.36e-009,0.000943,1,-0.10000000000000001,1,7.92e-009,0,0,-0.10000000000000001,0.10000000000000001,…
x=1:5; y=1:3; temps=[82 81 80 82 84;79 63 61 65 81;84 84 82 85 86]; mesh(x,y,temps) pause xi=1:0.2:5; yi=1:0.2:3; zi=inte…