How to graph a schedule on a timeline?

3 次查看(过去 30 天)
andrew
andrew 2012-2-24
Hi,
I'm trying to figure out the best way to present my output for a plane schedule. Ideally, I'd like to have a timeline on the x axis (from 0 to 24 hours in increments of 1 hr), and plane numbers on the y axis (from 1 to 25), and horizontal lines from target observation start time to target observation end time labeled with target numbers. Each plane's lines should be colored with a unique color
If I have an output that look like the following, what is the best way to do this in matlab? I'm not too familiar with matlab graphing functions:
output:
with 3 planes with bases labeled as 1,2,and 3, the output schedule vector looks like:
[1 17 6 10 1 9 12 1]
[2 23 2 24 8 7 3]
[3 25 26 3 8 2]
*as you can see planes can land in other planes' base locations also
the arrival and departure times are also given in vector format, depicting 'completion time at each target' (base times also depict time of arrival at base and time of departure):
ex. for plane 1: [1.5 3.8 5.2 8.9 11 13.5 15 20.2]
Thank you so much!! Any help would be greatly appreciated
Andrew

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by