Question

Write a SciLab script that will graph two functions on the same graph at the angles...

Write a SciLab script that will graph two functions on the same graph at the angles of 30 and 60 degrees:

The launcher can launch a balloon at a velocity of 26.5 m/sec.

Use the equations below for the path of the water balloon.

X=(v∙cos⁡θ )t Y=(v∙sin⁡θ)t-1/2〗∙g∙t^2

Set the x-axis to 'Horizontal Distance (X) [m] '

Set the y-axis to 'Vertical Distance (Y) [m] '

Set the graph title to 'Position of Balloon'

0 0
Add a comment Improve this question Transcribed image text
Answer #1
v=26.5;
theta1=30;
g=9.81;
t1Final=2*v*sind(theta1)/g;
t1=0:.01:t1Final;
x1=v*cosd(theta1)*t1;
y1=(v*sind(theta1))*t1-.5*g*t1.^2;
plot(x1,y1)
theta2=60;
g=9.81;
t2Final=2*v*sind(theta2)/g;
t2=0:.01:t2Final;
x2=v*cosd(theta2)*t2;
y2=(v*sind(theta2))*t2-.5*g*t2.^2;
plot(x2,y2)
xlabel('Horizontal Distance (X) [m]')
ylabel('Vertical Distance (Y) [m]')
title('Position of Balloon')

Add a comment
Know the answer?
Add Answer to:
Write a SciLab script that will graph two functions on the same graph at the angles...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • For this homework you will be creating functions in SciLab. You will turn in electronically, each of the functions requ...

    For this homework you will be creating functions in SciLab. You will turn in electronically, each of the functions requested below. Part Problem Statement: Create a function called Projectile that will give you the X and Y location of an object while in flight. The cquations for the X and Y locations are given below function [X, Y]= Projectile (Velocity, Angle, Gravity) Input variables: Velocity velocity in units of m/sec Angle angle of the launcher from 0 to 90 Degrees...

  • These questions are to be answered using MATLAB. I only need #3 answered, but #1 provides...

    These questions are to be answered using MATLAB. I only need #3 answered, but #1 provides information (like initial velocity, etc.) required for the questions. I think I have it done, but I'd like to see if there are other ways to use MATLAB for this question. PROJECTILES The distance a projectile travels when fired at an angle 8 is a function of time and can be divided into horizontal and vertical distances. Horizontal (1) = 1.V.cos(0) Vertical(t) = 1•...

  • 2. A baseball thrown from the outfield, a golf ball, or a thrown football, all will follow a trajectory (path) that has horizontal as well as vertical displacement components. If we neglect the a...

    2. A baseball thrown from the outfield, a golf ball, or a thrown football, all will follow a trajectory (path) that has horizontal as well as vertical displacement components. If we neglect the air friction on the ball, the path will be a perfect parabolic trajectory. The equations for the displacement of the ball are: Take gravity g as 9.81 meters per second, and the initial velocity, Vo, equal to 35 meters/second. Use Excel to show the ball trajectory for...

  • Could somebody help me with this question for the coding on MATLAB? Thank you Projectile Motion...

    Could somebody help me with this question for the coding on MATLAB? Thank you Projectile Motion The distance a projectile travels when fired at an angle Θ is a function of time and can be divided into horizontal distance, dVotcos(O) and the vertical distance is dy Vot sin(0)-0.5gt2. Suppose a projectile is fired at an initial velocity of 100 m/s and a launch angle of /4 radians (45°). Use ezplot to graph horizontal distance on the x -axis and vertical...

  • I want the math lab code for theses problems in a unique way

    I want the math lab code for theses problems in a unique way Theory A projectile is launched from point A up an incline plane that makes an angle of 10 with the horizontal. The mountain is 6,000 m high. Vo 10° Figure 1: Flightpath of a projectile. If we neglect the air resistance, the flight path of a projectile launched at an initial speed vo and an angle θ of departure relative to the horizontal is a parabola (see...

  • cally up from a moving cart. The position of the balls to raph below shows the...

    cally up from a moving cart. The position of the balls to raph below shows the position of the ball at equal time inter- A ball is fired vertically up from a mo the left of the graph below showst vals, as would be seen by the person on the cart. a. For this person the motion is sym- metric in time so positions on the way down are the same as on the way up, so only one ball...

  • help. i dont know hwo to do this c) Sketch the graph and set up the...

    help. i dont know hwo to do this c) Sketch the graph and set up the integral to find the volume of the solid obtained by rotating Pabout the line y- 1. Vertical or Horizontal slicing? Disk or a Washer? V.[[4ωά α V-[Λωω or Area of a slice A- Volume V d) Sketch the graph and set up the integral to find the volume of the solid obtained by rotating about the y - axis. Vertical or Horizontal slicing? Disk...

  • MATLAB, please provide code script Objective: Create a function file that animates projectile motion defined by...

    MATLAB, please provide code script Objective: Create a function file that animates projectile motion defined by the following equations in a subplot. Your function should accept user inputs of launch speed and launch angle. The output of your function will be a top subplot that displays height (y) as a function of x. The bottom subplot should display the vertical velocity while the projectile is in motion. A video of what your animation should look like is posted with this...

  • Please show all work and graph #13 Define an equation of path, position of particle M...

    Please show all work and graph #13 Define an equation of path, position of particle M on path at t = ti (sec), velocity, normal, tangent and full accelerations of the particle M, radius of curvature at t = tį. The defined parameters show on the graph. ti, sec Equations of motion of particle M r=x(t), cm y=y(t), cm - 21² + 3 -5t 4t +4 t +1 2 sin cos 1 t + 4 - 3 -4t 313 +...

  • An object is moving in the plane and has parametric equations (6) 2+1 +1 The corresponding...

    An object is moving in the plane and has parametric equations (6) 2+1 +1 The corresponding derivative functions are x) 2/(1+0) YO (2+1) where to is in units of seconds and the units on the coordinate axes are feet (a) The horizontal velocity of the object at time is (b) The vertical Velocity of the object at time is (c) The tangent line to the path is horizontal at time to (d) The object crosses the y-axis at time to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT