using scrip files help

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 个评论

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 个)

类别

帮助中心File Exchange 中查找有关 Programming 的更多信息

提问:

2013-7-11

Community Treasure Hunt

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

Start Hunting!

Translated by