plotting two objects in the same figure

I have a question please help me out on it. I want to plot two object. the first object is thrown at a hight until it reaches its highest point, at that time the second object realized at that height that has a free falling object, and the first object continue its pass until both of them hit the ground. both both must be in the same loop, and I don't know how to show both of them at the same time and the two loops that are inside of each other be independent.

回答(1 个)

Put hold on in between the plots:
plot(..................
hold on;
plot(..................
See my attached projectile demo.

类别

帮助中心File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by