how to use function and ode45

조회 수: 1 (최근 30일)
kareem maslah
kareem maslah 2019년 2월 1일
댓글: Rena Berman 2019년 3월 5일
hello friends,
can you help me to write that in matlab? they ask "write this equations in matlab function" for the first quastion .....the second quastion is to call the function and use ode45
when q=1 m1=2 m2=2 R1=1 R2=2 g=9.82 b=0.001
thank you
  댓글 수: 3
madhan ravi
madhan ravi 2019년 2월 1일
https://www.mathworks.com/help/matlab/ordinary-differential-equations.html - take your time read it , understand , try something and come back with specific question/s
Rena Berman
Rena Berman 2019년 3월 5일
(Answers Dev) Restored edit

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

채택된 답변

Guillaume
Guillaume 2019년 2월 1일
i got a complex numbers! [...] .the question is why!?
  • You're taking the root of a negative number ,
  • Or you're calculating the arcsin or arccos of a number outside [-1 1],
  • Or you're doing any other mathematical operation that can result in complex numbers
Reread the formulae that you wrote. In particular, note that x^.2 is . Perhaps you meant x.^2
  댓글 수: 1
kareem maslah
kareem maslah 2019년 2월 1일
thank you my friend...i didnt notice that for two hours ! the (x^.2)! now the function is working

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by