필터 지우기
필터 지우기

How to write this script using while loops?

조회 수: 1 (최근 30일)
Kirsty Strachan
Kirsty Strachan 2015년 3월 9일
답변: Image Analyst 2015년 3월 9일
Can anyone help me, I need to write this script and can't work out how to
  댓글 수: 1
Jan
Jan 2015년 3월 9일
Please show what you have tried so far and ask a specific question. The forum will not solve your homework.

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

답변 (1개)

Image Analyst
Image Analyst 2015년 3월 9일
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.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by