UQWorld

PCE Coefficients calculation at multiple frequency points

Hi, I have a governing equation:
f = 1:5000;
modelopts.mString = '(sqrt(1jP.wP.mju_0*(X+1jP.wP.epsju_rP.epsju0)))’;
modelopts.Parameters.w = 2
pi*f;
using these above lines of code, its taking too much time, is there any fast way to calculate PCEs at all the points.? Thanks