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

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Programming 的更多信息

产品

版本

R2018b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by