(Solved):
2 Task 2: Explore functions (70pts) It is kind of inconvenient to have to go into the code and mod ...
2 Task 2: Explore functions (70pts) It is kind of inconvenient to have to go into the code and modify parameters each time you want to explore some new settings. Write a function in the form of function x= tone ( F, dur, sps, A, phase). Functions should be saved as the function name and the .m as suffix. Submit the code tone.m. Following strictly the proposed M-file header template https: / / www . mathworks . com/matlabcentral/fileexchange/4908-m-file-header-template. - (10 pts) Function declaration (the first line) - (30 pts) Header comment - function name - syntax - inputs - outputs - example - note that the TAs should be able to follow your example to run your code - author and contact - (10 pts) varify argument - (10 pts) comments for each segment of the code - (10 pts) workable code