MATLAB: 2d plot from simulink too GUI axes

guiMATLABplotreal timesimulink

Im controlling A helicopter with simulink and i would like a real time plotting of its position of its x and y cordinates on a GUI axes.
The x position and y position are two seperate signals. How can i get these two signals into and x,y graph that is continuously updated on to the GUI.
Thanks
p.s I have seperate signals of the euler angles and z position for the aircraft . How could i carry this on to have a 3d position of the aircraft.

Best Answer

Register an Event Listener to send the data to ghe GUI everytime the block output is updated: