unitize a symbolic equation

funX = -2*((x-t)^3)/((((x-t)^2)+(y^2))^2);
funXint = int(funX,t)
eqn1 = combine(subs(funXint,t,-s)-subs(funXint,t,-L)+subs(-funXint,t,L)-subs(-funXint,t,s),'log','IgnoreAnalyticConstraints',true);
I am computing two definite integrals and the output is:
log(((y^2 + ((3*L)/4 + x)^2)*(((3*L)/4 - x)^2 + y^2))/((y^2 + (L - x)^2)*((L + x)^2 + y^2))) + y^2/(((3*L)/4 - x)^2 + y^2) - y^2/((L + x)^2 + y^2) - y^2/(y^2 + (L - x)^2) + y^2/(y^2 + ((3*L)/4 + x)^2)
That is correct but I need to plot it dimensionless, ie x/L and y/L. By hand I can do this by manipulating the equation and the L's do cancel except for the two inputs being x/L and y/L. How do I do this in matlab? I have tried substitution methods but I always get the same equation returned.
Thanks

Réponses (0)

Catégories

En savoir plus sur Programming dans Centre d'aide et File Exchange

Produits

Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by