Question: These were the only instructions given to me. Write a function m-file that accomplishes the tasks outlined below. Save your function as your last name

These were the only instructions given to me.

These were the only instructions given to me. Write a function m-file

Write a function m-file that accomplishes the tasks outlined below. Save your function as your last name followed by your first initial and Lab1. For example, if your name is Kane Warrior, then your function should be called WarriorkLab1.m. The function should take as its input a vector of arbitrary length and a time step value. If this vector represents discrete values of a function x(t), the function should return the derivative and integral as functions of time: i(t) and S. x(s)ds. Also, in the same figure, the function should output graphs of the function, its derivative, and its integral on separate axes. These plots should be labeled nicely. Kane Warrior's first line in his script would look like this: function (xdot integ] = WarriorkLab1(x, deltat) Of course Kane would be encouraged to write a short introduction or help section for his function. Write a function m-file that accomplishes the tasks outlined below. Save your function as your last name followed by your first initial and Lab1. For example, if your name is Kane Warrior, then your function should be called WarriorkLab1.m. The function should take as its input a vector of arbitrary length and a time step value. If this vector represents discrete values of a function x(t), the function should return the derivative and integral as functions of time: i(t) and S. x(s)ds. Also, in the same figure, the function should output graphs of the function, its derivative, and its integral on separate axes. These plots should be labeled nicely. Kane Warrior's first line in his script would look like this: function (xdot integ] = WarriorkLab1(x, deltat) Of course Kane would be encouraged to write a short introduction or help section for his function

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!