Why do I recieve error when doing sinc function
4 ビュー (過去 30 日間)
回答 (2 件)
Jon 2022 年 1 月 25 日
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 2022 年 1 月 25 日
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);