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

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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2019년 6월 13일

댓글:

2019년 6월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by