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 件のコメント

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

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

質問済み:

2013 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by