%Defining given varibles
t = 0 :.1 :3;f1 = 130;f2 = 120;y1 = cosd(2*pi*f1*t);y2 = cosd(2*pi*f2*t);%% Section 2: Processing
%equation given
y = 2 .* cos(2.*pi.*(f1+f2./2).*t) .* cos(2.*pi.*(f1-f2./2).*t); %This is my function for the sound waves, however, it appears as a stright line
MATLAB: My cos function appears as a straight line instead of as a wave
plot
Related Question
- Fourier transformed signal doesn’t show up in ezplot
- How to automatically adjust the radius of concentric coronas? code is given below
- Creating a matrix of sinusoids with frequency increasing over columns and time increasing over rows
- Simbolic Toolbox: how to avoid conj() in matrix *
- Generation of sound wave
Best Answer