How to put marker at specific x value on line?

Hi,
I have plotted the knee joint angle during 1 gait cycle for 5 different subjects. I want to put markers that correspond to the times during the gait cycle when a specific muscle reaches its maximum activation. I determined the x-values (i.e. times during the gait cycle) when this muscle activation occurs by plotting the muscle activation during the gait cycle separately, visually inspecting the plot, and creating a vector with the x-values corresponding to the timepoints of maximum muscle activation for each subject. My problem is I want to add these markers to my knee joint angle graph, but I don't know how to get them to "fall" on the previously plotted knee joint angle line. In other words, I don't know the corresponding y value. Attached is a picture of the gait cycle graph. The x values where I want markers for are:
light blue = 94.6309
green = 95.9732
purple = 38.255
dark blue = 97.3154
yellow = 96.6443
I specified which color for which marker since I changed the color order. Any advice would be greatly appreciated, thank you!

Categories

Asked:

on 18 Apr 2022

Edited:

on 18 Apr 2022

Community Treasure Hunt

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

Start Hunting!