Is there a way of calculating the array J, below, without using a loop?
X = 0:0.1:20;J = zeros(5,201);for i = 0:4 J(i+1,:) = besselj(i,X);end
bessel functionbesseljMATLABvectorization
X = 0:0.1:20;J = zeros(5,201);for i = 0:4 J(i+1,:) = besselj(i,X);end
Best Answer