MATLAB: How to find ALL of the positive roots of exp(-0.2*x)*cos(2*x)-0.15*x^2+1 expMATLABpositive roots I enter this into Matlab but I only receive back one of its positive roots and I know it has at least three. syms x, y=exp(-0.2*x)*cos(2*x)-0.15*x^2+1; sol=solve(y) Best Answer It has exactly three.The easiest way is to plot the function, observe the approximate crossings, and run a numeric solver that is constrained to each range in turn. Related SolutionsMATLAB: How to find all the positive roots of (e^(-.2x ))(cos(2x))-.15x^2+1 syms x,y=exp(-.2*x )*cos(2*x)-.15*x^2+1sol=solve(y) MATLAB: How to find roots of equation having tan(x) or exp(x) Is it a polynomial, or an equation involving tan(x) and exp(x)?Have you looked at fzero()?For example, if you have the equationy = tan(x) and you want find a root near 3fzero(@tan,3)Gives you the root at pi. Related QuestionInterpolating angle between -0.2 to 0.2 radI have the equation: sin(x)=cos(2x^2), [0,2]Derivative of a FunctionIs 0.3 – 0.1 – 0.2 ~= -0.1 – 0.2 + 0.3
Best Answer