MATLAB: Plot a fourier series representation of function fourier seriesMATLAB Best Answer Check this codet = linspace( -pi , pi );y1 = zeros(size(t));for i = 1:2:5 y1 = y1 + (4/pi)*(sin(i*t)/i);endy2 = zeros(size(t));for j= 1:2:39 y2 = y2 + (4/pi)*(sin(j*t)/j);endsubplot(2,1,1)plot(t, y1)subplot(2,1,2)plot(t, y2) Related SolutionsMATLAB: I want to create 2 sinusoid signals and adding it then create time domain of it first signal amplitude 110 50hz second signal amplitude 10 250hz t = (0:0.001:1); y1 = 110*sin(2*pi*50*t);y2 = 10*sin(2*pi*250*t);plot(t,y1,t,y2) MATLAB: How to plot signal for equation given below Try thist = linspace(0, 10, 100);w = 1;a = 1;y1 = sin(w*t)./t;y2 = sin(a*t).*sinh(a*t)./(2*a^2);y3 = (exp(-t)+exp(-3*t)).*heaviside(t);subplot(3,1,1)plot(t, y1)subplot(3,1,2)plot(t, y2)subplot(3,1,3)plot(t, y3) Related QuestionHow to plot some plots with error bar in one figure
Best Answer