Borrar filtros
Borrar filtros

How to write this script using while loops?

1 visualización (últimos 30 días)
Kirsty Strachan
Kirsty Strachan el 9 de Mzo. de 2015
Respondida: Image Analyst el 9 de Mzo. de 2015
Can anyone help me, I need to write this script and can't work out how to
  1 comentario
Jan
Jan el 9 de Mzo. de 2015
Please show what you have tried so far and ask a specific question. The forum will not solve your homework.

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 9 de Mzo. de 2015
Here's some hints. Use cosd() and sind() to get values of angles inputted in degrees rather than radians. Use inputdlg() to ask the user for v0. Also look up title(), plot(), grid, xlabel(), and ylabel() in the help. If you vectorize things, the code is pretty much like it looks like in your problem statement, e.g.
vy = v0 .* cosd(theta);
Just add .* for multiplication and .^ for raising to a power. Come back with your attempt at code if you still have trouble.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by