MATLAB: How do i inpolate two difference vectors to same length

MATLABvector interpolation extrapolation interp1 interp2

Hello Community
I have two different datasets in .xlsx and .csv format. Both are made by logging physical sensors. The reference for all data is rpm (rounds per minute) which is representated in both documents. Besides this there is also a "Fuel usage" in the first document and "power measurement" in the other document.
My problem is i need to calculate the fuel efficiency -> the fuel usage rate compared to power level of engine. But the two vectors are of size 1:770 and 1:4620. That makes it impossible to compare data.
Is there any way to interpolate both vectors, so vector start at 800rpm and stop at 2500rpm with 10rpm step, and connect this rpm referance to fuel usage and power level?
I will really appreciate a solution on this.

Best Answer

Attach a sample dataset for a more specific example.