MATLAB: Plot sin function with sincommand sincsinc command Hi, I want to know how to plot a sinc on matlab with sin Thanks Best Answer How about just using sinc() if you have the Signal Processing Toolbox.If not x = linspace(-5,5); y = sin(pi*x)./(pi*x); y(x==0) = 1; plot(x,y) Related SolutionsMATLAB: Sinc function x = -20:0.0001:20;y = (sin(pi*x))./(pi*x);y(x==0) = 1;% If you don't get: (Warning: Divide by zero.) you missed 0.plot(x,y) MATLAB: Plotting sin wave signal You defined -(pi/2)<= t <= (pi/2) . Your function does not have a definition outside of that one period, so it is not meaningful to plot it for multiple periods.You could extend your definition:x = linspace(-pi/2 , 5*pi/2); Related QuestionHow to plot sinc signalPlot the simple sin wave with amplitudeProblem with function sinc2D plot of x*sin(1/x)Problem plotting sinc function.Problem in plotting a sinc function
Best Answer