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 endRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.