Why do I recieve error when doing sinc function
1 view (last 30 days)
Jon on 25 Jan 2022
If you want to plot the sinc value for a range of values then you need to pass it a vector of values.
So for example:
x = linspace(-10,10,1000); % defines a vector with a thousand equally spaced points between -10 and 10
y = sinc(x);
You will need to modify with your actual values and scaling constants
Yusuf Suer Erdem on 25 Jan 2022
Hi, try it this way. That is the way how it should be done. But I could not get the exact waveform. Maybe others could help.
t = linspace(-5,5);
y = A.*t.*sinc(f.*t);