MATLAB: How could I connect two graphs with the main graph using GUI

gui graphs moving marker

Dear All: Could anyone help me with connecting two graphs with the main graph using GUI by moving a marker along the y-axis, so the other two graphs will automatically change? I am a beginner programmer using MatLab. Thanks.

Best Answer

You could use a uicontrol() with 'style', 'slider' . You would set up a Callback property for it, which would invoke a function you would write that would fetch the current slider location and use the information to update the two graphs.