How can I turn time series data into a spatial map?
Show older comments
Motivation: I am building a microscope to scan a laser across patterned surfaces to map the surface. The most intuitive method for this is to step from one point to the next and collect data at each fixed point. However, this is very slow. The fastest method is to use continuous motion of the laser spot to create a time series of data that has associated X,Y points at each time. However, real experimental equipment can't follow an arbitrary path due to finite accelerations (i.e., PID settings). This means that a raster map (see blue line in plots) will have errors in the true position compared to the target position when rastering quickly (see red line in plots). This in itself is not a problem as long as the visualized data accounts for the true position of the measured data.
Problem: The problem is visualization of the resulting "map". Specifically, time series data can't be easily converted into a 2D matrix that can be plotted in the "surf" function to visualize the surface map/image. This is even more complicated when using non-rastering mapping methods such as Lissajous motion.
Need:
- A surface plotting function that accepts vectors for X,Y and Z instead of 2D arrays. Similar to "plot3" but that yields a "continuous surface like "surf". OR
- A way to sort/rearrange time series data into a 2D matrix that can be used in "surf" or other similar surface plotting function.
Data Included:
- Target points vs. time
- Measured position vs. time


Accepted Answer
More Answers (0)
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!