how to write MATLAB code for this question?

1 Comment

I hope you know that, once somebody answers your question, you will not be able to delete it. If you have any concerns about your instructor seeing this post, you should keep that in mind.

Sign in to comment.

 Accepted Answer

See my attached demo, that I've posted countless times before here. Adapt as needed. If you have any more questions, read this link:

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!