How to draw a line at a bearing angle in matlab?

Viewed 2697

I'm trying to simulate the movement of a target in Matlab, whose initial x and y co-ordinates, true bearing and speed (in m/s) are specified. I am wondering if there is a way to simply draw a straight line, at the specified bearing angle to show the path taken by the target (as shown in the image below)

Bearing

Thanks in advance!

2 Answers
Related