how con I find multiple root? in function like sin(x)?

I want to make matrix of root
for example
syms x
eq(x) = sin(x) ==0;
I want to make matrix 'A' that include roots of sin(x)=0
like
A = [0, pi, 2*pi, 3*pi ..... 100*pi]

3 Comments

x = 0:pi:100*pi;
someRoots = fsolve(@sin,x);
thank you for answer my question
but absolutely i want to make matrix that include root of other function. not sin(x)
that function is
eq_1 = 1 + (cos(x))*(cosh(x)) + ((x*M_t*(((cos(x))*(sinh(x))) - ((sin(x))*cosh(x))))/(m*L)) - ((((x)^3)*I_t*(((cosh(x))*(sin(x)) + ((sinh(x))*(cos(x))))))/(m*(L^3))) + (x^4)*M_t*I_t*(1 - (cos(x))*(cosh(x)))/((m^2)*(L^4));
I want to make matrix that include 100 of roots bigger than 0

Sign in to comment.

Answers (0)

Categories

Asked:

on 13 Jun 2019

Commented:

on 13 Jun 2019

Community Treasure Hunt

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

Start Hunting!