MATLAB GUI Zoom with multiple plots
I have 2 plots in a MATLAB gui and i want to link them together so a zoom
on one plot zooms the other.
Unlike similar questions i have seen on linking plots neither my x data or
y data is shared by either graph, but it is related.
My data consists of the heights of land measured by a plane flying over
them over a period of 5 seconds.
Plot 1 : The height of land
y: height = [10,9,4,6,3];
x: time = [1,2,3,4,5];
Plot 2 : land coordinates
y: latitude = [10,20,30,40,50];
x: longitude = [1,2,3,4,5];
If the user zooms in the x axis on Plot 1, for example showing the first 3
seconds of flight I want to zoom the x and y-axis of Plot 2 so only the
first 3 longitude & latitude coordinates in the longitude & latitude
arrays are shown.
Is this possible?
No comments:
Post a Comment