2012-11-29 3 views
-2

69 점 X = {x1, x2, .... x69}의 목록이 있습니다. 내가 어떻게 포인트를 보간하고 2059 포인트로 곡선의 보간으로부터 새로운리스트 X1을 만들 수 있습니까? 획득 한 함수에 대해 표를 만드는 것보다 포인트를 보간 할 수 있습니까?mathematica로 보간

+0

이 문서에서'Interpolation'에 대해 읽어 보시기 바랍니다을 제공합니다. –

답변

1

하나의 방법 :

to = 10; 
oldData = {#, RandomReal[]} & /@ Range[to]; 
f = Interpolation[oldData, InterpolationOrder -> 3]; 
newData = {#, f[#]} & /@ FindDivisions[{1, to}, 40]; 

ListPlot[{newData, oldData}, 
PlotStyle -> {{Directive[PointSize[Medium]], Red}, Blue}, 
Joined -> True, Mesh -> All, AxesOrigin -> {0, 0}, 
PlotLegends -> {"new data", "old data"}] 

enter image description here

(. 새로운 PlotLegend 옵션을 추신 사용 V9)