How do you crete a function file?
1 view (last 30 days)
I need to create a function file that contains the commands to plot ? = sin ? and ? = sin2 ? on the same graph, I need to use the following expression to define the range of x in the function x=0:pi/A:2*pi. I then need to test the function using different values of A. Does this make sense?
Dyuman Joshi on 14 Dec 2019
Write the code, for e.g.
Call the function in the command window with an arbitary value of 'A'
plot(100) and plotted graphs will come as output. Try to give large values of A to ensure smooth curvesa and make sure the file is saved as the same name as the function.