Function sinc in matlab
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Moisa Tedy Gabriel
am 22 Mai 2020
Kommentiert: Moisa Tedy Gabriel
am 22 Mai 2020
I have this signal shifted by 7000 on the t axis
g(t) = 4000 * sinc(4000 * t) * e^(j * 2 * pi * 7000 * t)
I tried to replicate this in matlab to get the sinc graph, but does not work:
j = sqrt(-1);
x = linspace(-9000,9000);
y = (4000 * sinc(4000 * x)) * (exp(j * 2 * pi *7000 * x));
plot(x,y)
grid
Can anyone help me? Thanks!
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 22 Mai 2020
Bearbeitet: madhan ravi
am 22 Mai 2020
y = (4000 * sinc(4000 * x)) .* (exp(j * 2 * pi *7000 * x)); % .*!!
Note: By default j is an imaginary number in MATLAB
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!