Question: To test your function, write a separate script called testMyExp and put it in its own m - file. The script should create a 1

To test your function, write a separate script called testMyExp and put it in its own m-file. The script should create a 1D row array of x values ranging from -2 to 5 in steps of 0.1. Write a for loop that loops over all the elements in your x-values array. Use your myExp function to compute exp(x) for each x value in the array. Store the exp(x) valuTo test your function, write a separate script called testMyExp and put it in its own m-file. The script should create a 1D row array of x values ranging from -2 to 5 in steps of 0.1. Write a for loop that loops over all the elements in your x-values array. Use your myExp function to compute exp(x) for each x value in the array. Store the exp(x) values from your function in an array the same length as your x-values array.es from your function in an array the same length as your x-values array.

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 Programming Questions!