main.m50 chars4 lines
Explanation:
linspace creates a row vector of 100 evenly spaced points between 0 and 10, inclusivesin function returns the sine value for each element of vector xplot function is used to plot the graph, where x is plotted along the X-axis and y is plotted along the Y-axis.gistlibby LogSnag