How can I get a sinc function like this?

M
Mason · Feb 24, 2021 · 2.3K views
Question
As we know there is a sinc function in matlab which calculates the sinc of the data. But I need to get a sinc function that look like the image. what mathematical properties should I change to turn the standard sinc function into one like this?  
Expert Answer
Profile picture of Neeta Dsouza
Neeta Dsouza PhD Expert
Answered Nov 20, 2025
This is about the closest I could get after playing around with it for a few minutes:
 
 
x = 1:400;
y = abs(0.055 * sinc((x - 195) / 12)) - 0.001;
% Smooth out a bit
y = conv(y, [1,1,1]/3, 'same');
plot(x, y, 'b-', 'LineWidth', 3);
grid on;
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
% Give a name to the title bar.
set(gcf, 'Name', 'Demo by ImageAnalyst', 'NumberTitle', 'Off')
Why do you need this, and if you need it, why don't you have the formula for it? Where did you hear of it? Didn't they give you the formula?????

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!