How to write equations in MATLAB

Afternoon
I have been trying to write my equations in matlab, but I'm struggling on how to format them on matlab as a code. The equations are:
and
and
I'm writing a program and this is the only part I'm currently stuck. I'll be honoured if anyone helped me. Thank you very much.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 5월 6일
편집: Ameer Hamza 2020년 5월 6일

0 개 추천

You can use the symbolic toolbox to find out the derivative of 'x'
syms t w c r
x = r*cos(w*t) + sqrt(c^2-r^2*sin(w*t)^2)
dxdt = diff(x,t)
dx2dt = diff(dxdt,t)
Run it in Live script to see the equations rendered in latex format.

댓글 수: 2

davidmal
davidmal 2020년 5월 6일
Thank you very much, that was helpful, i got them.
Ameer Hamza
Ameer Hamza 2020년 5월 6일
I am glad to be of help.

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

카테고리

질문:

2020년 5월 6일

댓글:

2020년 5월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by