MATLAB: How can i solve this equation

MATLAB

Hi
How ca i solve the attached equation to find lamda ?
When all the other terms are known.

Best Answer

If you want to get multiple answers use vpasolve function. Set the number of answers you want yo get and the code will pick some then in a random way.
syms lambda
Mt=1; % The value of your variables
m=1;
L=1;
lt=1;
eqn= 1+(cos(lambda)*cosh(lambda))+((lambda*Mt/(m*L))*(cos(lambda)*sinh(lambda)-sin(lambda)*cosh(lambda)))-((lt*lambda^3)/m*L^3)*(cosh(lambda)*sin(lambda)+sinh(lambda)*cos(lambda))+ ((Mt*lt*lambda^4)/m^2*L^4)*(1-cosh(lambda)*cos(lambda)) ==0;
for n = 1:50
vpasolve(eqn,lambda,'random',true)
end
this example gives you 50 answers. The answer before gives the first it finds.