MATLAB: How to plot a continuous signal #continuoussignal #plotting#cosinefunction i am unable to plot the following signal can anyone help me? x(t)=20t^2(1-t)^4cos(12*pi*t) Best Answer Sounds like homework ...x = @(t) 20*t.^2.*(1-t).^4.*cos(12*pi*t);t = linspace(0, 1);figure(1)plot(t, x(t))grid Related SolutionsMATLAB: How to plot a continuous signal This should get you started: u = @(t) t>=0;x = @(t,u) cos(200*pi*t.*u(t));t = linspace(-1, 1);figure(1)plot(t, x(t,u))gridExtending that: u = @(t) t>=0;x = @(t,u) cos(200*pi*t.*u(t));t = linspace(-1, 1);figure(1)plot(t, x(t,u))hold onplot(t, x(-t,u))plot(t, x(t/3,u))hold offgridExperiment to get different results. MATLAB: How to create a fuction p(t) This runs. I will let you determine if it produces the result you want:w=2*pi*1.0E+5;p = @(t) cos(t) .* ((-pi/2 <= t) & (t <= pi/2));s = @(t) p(t).*cos(w*t)-p(t-2*pi).*cos(w*t)+cos(t-(3*pi/2)).*sin(w*2*t)-p(t-(5*pi/2)).*sin(w*t);t = linspace(-pi, 2*pi);figure(1)plot(t, s(t))grid Related QuestionHow to plot a periodic signal f(t)= t.^3 , -pi<=tHow to find the Fourier transform X(ω)
Best Answer