From: Jeevan on 23 Feb 2010 17:58 I just started using Matlab yesterday for the first time in my life and am just getting a feel a of its tremendous capabilities. My academic project is to construct a trajectory for a set of waypoints. What I started with is as follows; worldmap world [lat, lon] = ginput(7) plot(lat,lon) So this plots the lines (legs) connecting the positions I selected. My next task is to build build smooth transitions (arcs) between those legs. I need to draw an arc with the following inputs - arc centre (lat,lon), arc radius (nautical miles), arc start and end angles. I having a hard time finding how to do this. Can anyone please tell me how to draw arcs with these inputs? Looking forward to hear from you..
From: TideMan on 23 Feb 2010 19:32 On Feb 24, 11:58 am, "Jeevan " <jee...(a)gmail.com> wrote: > I just started using Matlab yesterday for the first time in my life and am just getting a feel a of its tremendous capabilities. My academic project is to construct a trajectory for a set of waypoints. What I started with is as follows; > worldmap world > [lat, lon] = ginput(7) > plot(lat,lon) > > So this plots the lines (legs) connecting the positions I selected. My next task is to build build smooth transitions (arcs) between those legs. I need to draw an arc with the following inputs - arc centre (lat,lon), arc radius (nautical miles), arc start and end angles. I having a hard time finding how to do this. Can anyone please tell me how to draw arcs with these inputs? > Looking forward to hear from you.. I guess you're using the mapping toolbox which I don't have, but in the mapping toolbox I use (m_map - Google it) there is a projection called Gnomonic which converts straight lines on a map to arcs on the Great Circle.
From: Rob Comer on 25 Feb 2010 09:54 "Jeevan " <jeevge(a)gmail.com> wrote in message <hm1mhu$7pv$1(a)fred.mathworks.com>... > I just started using Matlab yesterday for the first time in my life and am just getting a feel a of its tremendous capabilities. My academic project is to construct a trajectory for a set of waypoints. What I started with is as follows; > worldmap world > [lat, lon] = ginput(7) > plot(lat,lon) > > So this plots the lines (legs) connecting the positions I selected. My next task is to build build smooth transitions (arcs) between those legs. I need to draw an arc with the following inputs - arc centre (lat,lon), arc radius (nautical miles), arc start and end angles. I having a hard time finding how to do this. Can anyone please tell me how to draw arcs with these inputs? Your problem sounds over-constrained, but try looking at the Mapping Toolbox scircle1, scircle2, and track1 functions.
|
Pages: 1 Prev: How to execute these VBA/EXCEL code from within Matlab? Next: World Ocean Database |