Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

code using matlab Problem 6: (20 Points) Create a time vector called t that contains 1000 elements ranging from- to . Using t, create vectors

image text in transcribed

code using matlab

Problem 6: (20 Points) Create a time vector called t that contains 1000 elements ranging from- to . Using t, create vectors yl and y2, defined by the following equations: y2-t (2 Sin (t)+Cos () I. Create a blank figure and divide the figure in to 3 equal sections. On the first section and y2 in blue. Don't forget to use appropriate axis label, and legend for your figure II. Find the time point at which the peak (highest point) of yl and y2 occurs. Call these of this figure, plot both yl and y2 as a function of time. Make sure you plot y1 in green variable Peaktime1, and PeaKtime2. Find the difference between these time points, call this variable timediff. Display timediff: The time difference between the peak of y1 and y2 is timediff sec." Assignment III III. On the same graph as above plot a black line at the level of peak of y1, across all IV. In the second section of the figure, only plot the values of y2 that are greater than the BioE 240 - Spring 2019 values of t peak ofy1. Plot this graph in magenta sing asterisks *) symbols. Make sure th the x and y axis match the axis in the section one of your igure. V. In the third section of the figure, superimpose the graph in section two onn section one. Your plot should look like the figure above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the different techniques used in decision making?

Answered: 1 week ago