Why am I getting the transperancy error for the following code?
Error using syms (line 216)
Transparency violation error.
See Parallel Computing Toolbox documentation about Transparency
clc clearalpha =4; % Path loss exponent
del = 2/alpha;R =1;N = 4;p_k = [0.15 0.05 0.45 0.35];epsi = 1;N_set = 1:N;lambda_dash = 0.05:0.05:0.5;spec_eff1 = zeros(length(lambda_dash),N);parfor vv = 1:length(lambda_dash) vvcomm_term = lambda_dash(vv)*pi*(epsi+R^alpha).*gamma(1+del)*gamma(1-del);syms ttfun_int1 = zeros(1,N);for k = 1:Nterm = 0;for ii = 1:N m =max(ii-N+k,0):1:min(k,ii); p_intf = (factorial(k)./(factorial(m).*factorial(k-m))).*(factorial(N-k)./(factorial(ii-m).*factorial(N-k-ii+m)))./(factorial(N)./(factorial(ii).*factorial(N-ii))); term =term + (sum(p_k(ii).*p_intf.*((2^(tt)-1).*m./k).*((epsi+R^alpha).*(2^(tt)-1).*(m./k) + epsi).^(del-1)));endf = exp(-comm_term.*term);fun_int1(k) = vpa(int(f,[0 inf]));endspec_eff1(vv,:) = fun_int1;endspec_eff = sum(p_k.*spec_eff1,2);semilogy(lambda_dash,spec_eff,'k-')hold ongrid on
Best Answer