MATLAB: How to plot real and imag parts for this signal x(t) = cos(t/4)+cos(3*t/4) plotreal part plotreal plot x = cos(t/4)+cos(3*t/4) for this signal how i plot the real and imag parts Best Answer Why do you think there might be any imaginary parts?Try this:t = linspace(-2*pi, 2*pi, 1000);x = cos(t/4)+cos(3*t/4);plot(t, x, 'b-', 'LineWidth', 2);grid on;xlabel('t', 'FontSize', 20);ylabel('x', 'FontSize', 20);but if t were complex, you could plot real(x) and imag(x) instead of x. Related SolutionsMATLAB: Plotting cos(omega*t) This might guide you a little:t = linspace(0,10,1000) ; % time vector f = 20 ; % a frequencyomega = 2.*pi.*f ; % calculate omegay = cos(omega.*t) ; % calculate cosine for this time spanplot(t,y) % plot it(btw, I prefer to use the .* notation for multiplication) MATLAB: Run and plot complex function You probably meant to put parentheses in the following line:X=exp(1i*Omega)./exp(1i*Omega)-0.8;Did you mean:X=exp(1i*Omega)./(exp(1i*Omega)-0.8); Related QuestionWhat is problem to make space curve [2*cos(t),2*sin(t),5]I have to construct a 3D plot and contour plot of the following equation which will result in rouge waves i have attached a pic of it .i have tried it several times but i am getting nothing.please help me with the task.any help would be appreciatedNested loops to estimate cos(pi/4)How to integrate integral(integral(cos(t),-10,t) ,t1,t2)HOW to write cos^2(t) in matlap
Best Answer