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 to seconds with increments of 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, u and u for the down step at t and the up step at t 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
