Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Interpolation on a Convoluted Function

1 Ansicht (letzte 30 Tage)
jgillis16
jgillis16 am 17 Aug. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have the following function:
G(tau) = integral(-inf, inf) h_x(t)*h_+(t+tau)dt
where tau = T, h_x = Y1, h_+ = W1, and t = X1.
And: T = 0.0001, Y1 = 55488x1 double, W1 = 55488x1 double, X1 = 55488x1 double.
I will need to perform a convolution of the two given functions as I need to identify the overlap between two functions.
Therefore, assuming my X1 vector is ordered, I used the trapezoidal rule to evaluate the integral:
G(tau) = (Y1(t1)*W1(t1+tau)+Y1(t2)*W1(t2+tau))/2 * (t2-t1) +
(Y1(t2)*W1(t2+tau)+Y1(t3)*W1(t3+tau))/2 * (t3-t2) + ...+
(Y1(t55487)*W1(t55487+tau)+Y1(t55488)*W1(t55488+tau))/2 * (t55488-t55487)
But, in order to get W1(ti+tau), I will need to use interpolation. How would I go about doing this?
  1 Kommentar
Torsten
Torsten am 17 Aug. 2015
help interp1
Best wishes
Torsten.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by