Line 227: f1 = @t v*w*cot((sqrt(v))*(t-t2) + acot((sqrt(u2/w))))/(rout - rb/2 - (t - t2)*(t - t2)*g*(sin(k))/2);
Line 228: f2 = @t x4t2d - quad(f1, t2, t2d);
Lin3 229: t2dapprox = t2 + 0.1;
Line 230: t2d = fsolve(f2, t2dapprox);
Matlab is giving errors: Cant parse at v in 227. Parse error at x4t2d in 228
P.S. All values are (supposed to be) scalars in 227