L=((gamma+1)*xi-(gamma-1))./((gamma+1)-(gamma-1)*xi);
K1=(2*pi)./((2*w-1)*(2-w)*D);
chi=((gamma*(gamma-1)*(xi-1).^3)./(2*xi(((2-gamma)*xi)+gamma)));
C5=(((2*(L-xi^2)*chi)*chi)./(gamma))./((chi./gamma)^2-((chi./4*gamma)*(xi-1)^2));
C6=(((2*L*chi)./gamma)+ ((chi*sqrt(chi*xi))./(chi-1-chi*xi))*((chi-1)^2*sqrt(chi./xi)+2*(chi./xi)*sqrt(chi*xi)))./((chi./gamma)^2-(chi./(4*gamma))*(xi-1)^2);
B=((((chi*(xi-1))./((xi-1)-sqrt(chi*xi)))-(chi*w./gamma))*(2*chi./gamma))./((chi./gamma)^2-(chi./4*gamma)*(xi-1)^2);
y=(((K1*r^(1-2*w))*gamma)-(1.5*gama*beta*r)+K).*((chi.*{(((K1*r^(1-w))*gamma)-(1.5*gama*beta*r^(1+w))+(K*r^w))}^-1.*{(Kp*r^-B)./(z)+((C5*beta*r^(w+1))./(1+w+B))+((2*pi*C6*r^(1-w))./(D*(2-w)*(1-w+B)))}+L));
Subscript indices must either be real positive integers or logicals.
Error in problem_17 (line 18)
chi=((gamma*(gamma-1)*(xi-1).^3)./(2*xi(((2-gamma)*xi)+gamma)));
please help me to fix this error.
Thank you