MATLAB: Controlling array data when calculating

arrays

im try to avoiding having a w = 0. how do i code this?
a = 10;
w = -a:(a/1000):a
F = 2*sin(a*w)./w;

Best Answer

Another way is to just delete the element where w=0:
w(w==0) = [];
Related Question