Plotting cartesian coordinates of animal paths
Show older comments
Hello everyone,
I have spent the last few weeks ironing out the complicated parts of a (once dead) data set. All of the difficult mathematics are done and I have a beautiful code that spits out a perfect, time-stamped matrix. I want to plot these x and y coordiantes (the 3rd and 4th columns of my data); however, I have gone through the different posts on here re: plotting cartesian points and have not yet found a working solution.
My data looks something like this:
0 0 0 0
1 0.20 -3.99640 -0.265350
2 0.40 -1.10210 0.462070
3 0.60 -2.43890 0.371960
4 0.80 -0.2320 -0.553330
5 1 0.0904320 -1.32830
6 1.20 -14.1930 0.138860
Column1 is an index
Column2 is a timestamp
Column3 is the animal's position along the x-axis (x coordinate)
Column4 is the animal's position along the y-axis (y coordinate)
Other solutions posted on here seem to consider the X and Y coordinates separately, rather than as two defining features of a single point in space. I suppose in that way, my goal is plot the index value and it's affiliated x and y values (though this may just be semantics).
At the end of the day, my goal is take several hundred iterations of this type of path data and generate a heat map to compare path features between samples.
Many thanks.
Accepted Answer
More Answers (0)
Categories
Find more on Data Distribution 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!