Question: Utilizing a time step of 0 . 0 1 , write a MATLAB . m file to evaluate and plot y ( t ) =

Utilizing a time step of 0.01, write a MATLAB .m file to evaluate and plot y(t)= sin(t)/t
over the interval 10<= t <=10. Note that there will be a division by zero.
Modify your .m file to eliminate the division by zero. (Hint: you may simply define sin(0)/0 to be 1,
i.e. if t(k)==0, y(k)=1; Besides, you can use the command, n=length(t), to decide the looping times.)

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!