Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Matlab code Suppose a TV with height of 60 feet has been mounted onto a platform

ID: 3828256 • Letter: M

Question

Matlab code

Suppose a TV with height of 60 feet has been mounted onto a platform so that the bottom of the TV is 150 feet off the ground. Viewing of the TV is optimum when has been maximized. Generate an array for distance from 60 to 350 feet at increments of 0.5 feet. Calculate in degrees for each of these distances. Determine the max value of theta and the position in the array where this value occurs. Use the position (index/subscript) of the maximum value and the array for distances to determine the best distance for viewing.

Explanation / Answer

function [ma mi] = alifun(A) aw = A(:); ma = aw(1); mi = aw(1); for i1 = 2:numel(aw) if ma aw(i1), mi = aw(i1); end end end