i need a program for the problem that i have posted below

i need a code for this problem and a graph as shown below

5 Comments

Thank you telling us what you have to do. How is that relevant for us?
You can find guidelines for posting homework on this forum here.
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the MATLAB Onramp tutorial (https://www.mathworks.com/support/learn-with-matlab-tutorials.html) to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
hello sir steven this is what i have done and i am not getting the expected graph
Which line you are facing issue (specifically please)?
If possible can you copy and paste your code in a comment here rather than posting a picture of it? It's hard for people who want to determine why the code isn't showing the expected graph to run and modify the picture.

Sign in to comment.

 Accepted Answer

The m refers to metres! It shouldn't be included in your expression for x. Remove it and you should get your desired plot.

More Answers (0)

Categories

Find more on Graphics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!