Is fun a symbolic expression or a symbolic function?
Is x a scalar symbolic variable?
Are Li and Ls both scalars? Are they numeric or symbolic ?
Could you save fun, x, Li, Ls to a .mat and attach the .mat for testing ?
Which MATLAB release are you using?
