You can use the cos() function in MATLAB to create two cosine functions, multiply them together using the element-wise multiplication operator (.*), and then plot the result using the plot() function. Here's an example code snippet to get you started:
main.m314 chars18 lines
This code will create a plot of the product of two cosine functions, with x values ranging from -π to π. You can adjust the x range or the frequency of the cosine functions to suit your needs.
gistlibby LogSnag