Question: Write a statement that assigns tree Height with the height of a tree given the distance from the tree (in feet) and angle of elevation

Write a statement that assigns tree Height with the height of a tree given the distance from the tree (in feet) and angle of elevation (in degrees). Use the following formula: tangent of angleElevation = treeHeight/treeDistance treeHeight angleElevation 0 tree Distance Function Save e Reset DI MATLAB Documentation 1 function treeHeight = CalculateHeight (angleElevation, treeDistance) 2 % angleElevation: Angle of elevation in degrees 3% treeDistance: Distance from tree in feet 4 % Assign treeHeight given the angleElevation and treeDistance 6 treeHeight = 0; 7 8 end 5 Code to call your function C Reset 1 CalculateHeight(6.7, 17.5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
