Final answer:
To investigate the periodicity of cos() and sin() using MATLAB, create a time vector, plot the functions separately, and then plot them together on the same plot. Both functions are periodic with the same fundamental period of 2π.
Step-by-step explanation:
Investigating the periodicity of cos() and sin() in MATLAB
To investigate the periodicity of cosine and sine functions using MATLAB, follow these steps:
- Create a time vector using the t span you want to investigate.
- Plot the cosine function using the cos() function and the time vector you created. Add a title, axis labels, and units to the plot.
- Plot the sine function using the sin() function and the time vector you created. Add a title, axis labels, and units to the plot.
- Use the subplot command to plot both the cosine and sine functions on the same plot. Add a title, axis labels, and units to the plot.
Once you have plotted the functions, observe the results. Both the cosine and sine functions are periodic, meaning they repeat themselves after a certain interval of time. The fundamental period of both functions is the same, which is 2π. However, their shapes and amplitudes may be different.