photo

Greylyn Gao


Last seen: plus de 2 ans il y a Actif depuis 2021

Followers: 0   Following: 0

Statistiques

Feeds

Afficher par

Question


Why am I getting an NaN value for my array?
n5 = [-5:5]; y0 = abs(Dn2f(0)) ys = abs(Dn2f(n5)) function Dn = Dn2f(n) if n == 0 Dn = 1/2; else ...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Question


Why does my function return a single value instead of an array? I need it to return an array so I can plot it.
%A.3 Dn2 = @(n) (1-exp(-j*pi*n/2))/(j*pi*n); n5 = [-5:5]; Y=Dn2(n5)

plus de 2 ans il y a | 1 réponse | 0

1

réponse