How to write equations in MATLAB

137 visualizaciones (últimos 30 días)
davidmal
davidmal el 6 de Mayo de 2020
Comentada: Ameer Hamza el 6 de Mayo de 2020
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.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 6 de Mayo de 2020
Editada: Ameer Hamza el 6 de Mayo de 2020
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 comentarios
davidmal
davidmal el 6 de Mayo de 2020
Thank you very much, that was helpful, i got them.
Ameer Hamza
Ameer Hamza el 6 de Mayo de 2020
I am glad to be of help.

Iniciar sesión para comentar.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by