how to do spline without spline

hello i need to do that the function spline do to a data without using this function someone can help me

답변 (1개)

Voss
Voss 2021년 12월 18일

1 개 추천

From the spline documentation page: "You also can perform spline interpolation using the interp1 function with the command interp1(x,y,xq,'spline')."
There you have it: you can do spline interpolation without calling the spline function by calling the interp1 function with the 'spline' option.

댓글 수: 6

Lior Genfon
Lior Genfon 2021년 12월 18일
no i need to do a leniear interpolotion without commond that do it
i need to write the code
Stephen23
Stephen23 2021년 12월 18일
"i need to write the code"
What did you try so far?
Lior Genfon
Lior Genfon 2021년 12월 18일
i dont know were to start
i need to compare a spline commond to a code that i will write but i dont know were to start
Stephen23
Stephen23 2021년 12월 18일
편집: Stephen23 2021년 12월 18일
"i dont know were to start"
You should start by deciding if you need to do spline interpolation or linear interpolation, because so far you have written both. Do you know the difference? Do you know what interpolation is?
So, what does your homework actually ask you to do?
lior genfon
lior genfon 2021년 12월 18일
i need to do the linear interpolation
my home work ask me to record me walking with matlab sensors
then do with the data spline interpolation
and to do a linear interpolation and compare them
then i need to up my sample rate to 500Hz from 50 Hz without using the build in commond like resample
the do fft and colculate the staps that i made
Stephen23
Stephen23 2021년 12월 18일
You can find plenty of tutorials online that explain how linear and spline interpolation works.
Have you read any? What material are you allowed to use for your homework?

댓글을 달려면 로그인하십시오.

카테고리

질문:

2021년 12월 18일

댓글:

2021년 12월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by