Question

Please show answer using MATLAB Time, t(s) 0 2 4 6 8 10 12 14 16...

Please show answer using MATLAB

Time, t(s)

0

2

4

6

8

10

12

14

16

Position, x(m)

0

0.7

1.8

3.4

5.1

6.3

7.3

8.0

8.4

  1. To find the velocity at all times using the two-point differencing formula (and where appropriate the three-point forward or backward differencing formulae), these should yield the results correct to O(h2)
  2. To find the acceleration at all times using the three-point central differencing formula (and where appropriate the four-point forward or backward differencing formulae), these should also yield the results correct to O(h2)
  3. Plot the position, velocity and acceleration with respect to time
0 0
Add a comment Improve this question Transcribed image text
Answer #1

t = 0:2:16;
pos = [0 0.7 1.8 3.4 5.1 6.3 7.3 8.0 8.4];
vel = [];
acc = [];

for i = 1:length(t)-1
   vel(i) = (pos(i+1) - pos(i))/(t(i+1) - t(i));
end

for i = 1:length(t)-2
   acc(i) = (pos(i+2) - pos(i))/(t(i+2) - t(i));
end

subplot 311
plot(t,pos);
title("Plot of Position with time");
xlabel("t");
ylabel("x(t)");
subplot 312
plot(t(1:length(vel)),vel);
title("Plot of Velocity with time");
xlabel("t");
ylabel("v(t)");
subplot 313
plot(t(1:length(acc)),acc);
title("Plot of Acceleration with time");
xlabel("t");
ylabel("a(t)");

Add a comment
Know the answer?
Add Answer to:
Please show answer using MATLAB Time, t(s) 0 2 4 6 8 10 12 14 16...
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
  • (a) Use the following data to find the velocity and acceleration at t = 10 seconds:

    Numerical methods(a)  Use the following data to find the velocity and acceleration at t = 10 seconds:Time (s):0246810121416Position (m):00.71.83.45.16.37.38.08.4Use second-order correct (i) centered finite-difference, and (ii) backward finite-difference methods. (b)  Use the Taylor expansions for f(x +h), f(x+2h), f(x +3h) and derive the following forward finite-difference formulas for the second derivative. Write down the error term$$ f^{\prime \prime}(x) \approx \frac{-f(x+3 h)+4 f(x+2 h)-5 f(x+h)+2 f(x)}{h^{2}} $$

  • Allison throws a tennis ball at time t = 0 from a height h above the...

    Allison throws a tennis ball at time t = 0 from a height h above the ground equal to her own height. We assume that the positive horizontal direction is the positive x-direction, and the positive vertical direction is the positive y-direction. The ball has a positive initial horizontal velocity vx, and no initial vertical velocity. At times t1 and t2, the ball bounces on the ground for the first, and second times respectively after being thrown. We assume that...

  • ONLY ANSWER IF 100 PERCENT CORRECT USE MATLAB 9 8 6 3 2 t (s) 10 0 2 4 6 8 Entire an equivalent function for the plot shown here using the step function, u(t) 9 8 6 3 2 t (s) 10 0 2 4 6 8 Ent...

    ONLY ANSWER IF 100 PERCENT CORRECT USE MATLAB 9 8 6 3 2 t (s) 10 0 2 4 6 8 Entire an equivalent function for the plot shown here using the step function, u(t) 9 8 6 3 2 t (s) 10 0 2 4 6 8 Entire an equivalent function for the plot shown here using the step function, u(t)

  • Impulse and Momentum Name: Date: TA's Name: Learning Objectives: 1. Understanding force ys time curves for...

    Impulse and Momentum Name: Date: TA's Name: Learning Objectives: 1. Understanding force ys time curves for a collision. 2. Calculating impulse using force vs. time curves. 3. Understanding the relationship between impulse and momentum. 4. Applying conservation of momentum for inelastic collisions. Apparatus: Aluminum track, track legs, two smart carts, two cart stops, and small black rectangular cart masses. Part A: Collision of a moving cart with a fixed cart cart 1 Cart stop stationary cart cart stop Consider the...

  • Show work please 17 18 22 25 26 31 36 40 41 2 4 6 8 10 12 14 16 18 p) Estimate σ2 Round your answer to three decimal places (e g. 98765) (c) Estimate the standard error of the slope and intercept...

    Show work please 17 18 22 25 26 31 36 40 41 2 4 6 8 10 12 14 16 18 p) Estimate σ2 Round your answer to three decimal places (e g. 98765) (c) Estimate the standard error of the slope and intercept in this model Round your answers to three decimal places (eg. 98.765) sr(A) = sr(A) = 17 18 22 25 26 31 36 40 41 2 4 6 8 10 12 14 16 18 p) Estimate...

  • 4.3 Analysis Assignment #4 Note 1: all assignments moving forward must adhere to the appropriate Six Ste...

    4.3 Analysis Assignment #4 Note 1: all assignments moving forward must adhere to the appropriate Six Step Process (SSP). As our study materials have specified, the SSP has 3 versions. Version 1 is to be used for all t-tests; for all correlation analyses and Version 3 is be used for all regression analyses. Note 2: The data sets for Q1, Q2 and Q3 below can be downloaded here. Week 4 Analysis Assignments.xlsx Q1: (30 points) Complete the following data analysis:...

  • Can't figure out the concentration of the complex of solns. 10, 11, 12, 13, & 14. Modern...

    Can't figure out the concentration of the complex of solns. 10, 11, 12, 13, & 14. Modern Experimental Chemistry Chemistry 153 The Iron(III) Thiocyanate Complex Purpose of the Experiment To determine the chemical formula of a complex ion and measure its formation equilibrium constant Equipment Spectro Vis spectrophotometer and LabQuest, cuvette, 25-mL buret (3), ring stand, buret clamp (2), 50-mL beaker (3), small plastic beakers Reagents SCN, as KSCN, 0.00200 M solution Fe; as Fe(NO), 0.00200 M solution and a...

  • please I need this, step by step with formulas, avoid using excel. CASE 33 Security Software,...

    please I need this, step by step with formulas, avoid using excel. CASE 33 Security Software, Inc. communication in a highly secure and efficient process. The Market Security Software, Inc. (SSI) was a major provider of application software. The firm was proud to be the number two company in the enterprise firewall market. Firewalls ensure network Security for businesses by determining whether to approve or deny access to corporate networks and applications. They have security software that inspects com- munication...

  • CASE 1-5 Financial Statement Ratio Computation Refer to Campbell Soup Company's financial Campbell Soup statements in...

    CASE 1-5 Financial Statement Ratio Computation Refer to Campbell Soup Company's financial Campbell Soup statements in Appendix A. Required: Compute the following ratios for Year 11. Liquidity ratios: Asset utilization ratios:* a. Current ratio n. Cash turnover b. Acid-test ratio 0. Accounts receivable turnover c. Days to sell inventory p. Inventory turnover d. Collection period 4. Working capital turnover Capital structure and solvency ratios: 1. Fixed assets turnover e. Total debt to total equity s. Total assets turnover f. Long-term...

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