I would like to superimpose the two graphs into one graph by making sure that the peaks of both graphs are at the same point. (Note that each graph has exactly three peaks - highest points) In other words, the superimposed graph must also have only 3 peaks, which are the peaks of graph 1 and also graph 2. During the process, strecthing or shrinking of the graph can be done. The reason of all this is to obtain the graphical demonstration of waviness of second graph. Is there a way to do that?
Attached above is the first graph data and second graph data. The y variable for both graphs is y_graph and x variable for both graphs is x in the mat file.
Below is graph 1.
Below is graph 2.