Question : MATLAB subs to evaluate symbolic equation and function ? Answer : Example 1 : syms x f=log(sin(x)) g=exp(tan(x)) subs(f,pi/2) % evaluate of f at x= pi/2 subs(g,0) % evaluate of g at x= 0 Output : ans =…
Posted inMechanical Engineering
Question : MATLAB subs to evaluate symbolic equation and function ? Answer : Example 1 : syms x f=log(sin(x)) g=exp(tan(x)) subs(f,pi/2) % evaluate of f at x= pi/2 subs(g,0) % evaluate of g at x= 0 Output : ans =…