Question: Let's create and plot an array of data for the pulse function below. The time array should go from 0 to 1 5 seconds with

Let's create and plot an array of data for the pulse function below.
The time array should go from 0 to 15 seconds with increments of 0.01 seconds. The pulse function array, denoted u, must have a value that matches the plot above for each time point. You are given some code below to get you started. The approach uses the ones command and logical array indexing to create two functions, u1 and u2 for the down step at t=5 and the up step at t=10. Then, just add them together. The lines with FIXME in their comments need your help, but you can run the script as is to see what it does without your help. Feel free to add additional code to understand the script. For example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!