using scrip files help

2 次查看(过去 30 天)
jessica
jessica 2013-7-11
Hi, guys , I have this problem and I dont really know how to start
A large tv screen of height H=50ft is placed on the side wall of a building. the height from the street to the bottom of the screen is P=130ft . the best view of the screen is when theta is maximum . write a matlab program that determines the distance x at which theta is at maximum . define a vector x with elements ranging from 30 to 300 with spacing of 0.5 . use the vector to calculate the corresponding values of theta . then use matlab build in function "max" to find the value of x that correspond to the largest value of theta all I got so far is this and I am so lost , I have been getting the previous chapters with no problem but this exercise is confusing me on what to do , thanks for the help
x=30:0.5:300; c=sqrt(x.^2+50.^2);
  1 个评论
Jan
Jan 2013-7-12
What is your question? Hopefully the forum will not solve your homework, because you could not submit this without cheating anymore. But if you ask a specific question, it is valid and fair to help you.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by