- #1
hfrid
- 4
- 0
Problem: Given a vector of approximated output for an arbitrary periodic function, find the function's period.
Example: Let's say we approximate a solution to the ODE
dy/dt = cos(t)
using a numerical method (for example Euler's method or MATLAB's ode45), we will get a vector containing approximated values of y(t) = sin(t) on a given interval. Our problem is to determine the period P (in this example P = 2*pi) of the function approximated in this vector.
Question: How is this problem normally solved? Is there a MATLAB function that solves this problem or is there a general algorithm?
If not, should I simply start writing my own program for identifying periods in a vector of data?
Thanks in advance,
Henrik
Example: Let's say we approximate a solution to the ODE
dy/dt = cos(t)
using a numerical method (for example Euler's method or MATLAB's ode45), we will get a vector containing approximated values of y(t) = sin(t) on a given interval. Our problem is to determine the period P (in this example P = 2*pi) of the function approximated in this vector.
Question: How is this problem normally solved? Is there a MATLAB function that solves this problem or is there a general algorithm?
If not, should I simply start writing my own program for identifying periods in a vector of data?
Thanks in advance,
Henrik