MATLAB Script:
close all
clear
clc
L = [12 35 90 122 153]';
H = [4 12 45 73 135]';
% Part (a)
fprintf('Part (a)\n--------------------------------------\n')
disp('Let H = a*L^b be the power function')
disp('ln(H) = ln(a) + b*ln(L)')
A = [ones(size(L)), log(L)];
C = A\log(H);
a = exp(C(1)); b = C(2);
fprintf('Predicted Model: ln(H) = %.4f + (%.4f)*ln(L)\n', C(1),
C(2))
% Part (b)
fprintf('\nPart
(b)\n--------------------------------------\n')
fprintf('Vertical Thickness (When Length = 145 cm): %.4f\n',
a*145^b)
% Part (c)
fprintf('\nPart
(c)\n--------------------------------------\n')
fprintf('Power Function: H = (%.4f)*L^(%.4f)\n', a, b)
% Plotting
LL = min(L):0.1:max(L);
HH = a*LL.^b;
figure, plot(L,H,'o',LL,HH)
xlabel('L'), ylabel('H')
title('Power Function'), legend('Data Points', 'Power Function',
'Location', 'northwest')
Plot:

Output:
Part (a)
--------------------------------------
Let H = a*L^b be the power function
ln(H) = ln(a) + b*ln(L)
Predicted Model: ln(H) = -2.0953 + (1.3424)*ln(L)
Part (b)
--------------------------------------
Vertical Thickness (When Length = 145 cm): 98.0333
Part (c)
--------------------------------------
Power Function: H = (0.1230)*L^(1.3424)
The following data are the shoulder-hip length and the vertical thickness of the bodies of some q...
The following data are the shoulder-hip length and the vertical thickness of the bodies of some quadrupeds at the zoo in Zurich, Switzerland. Find the log transformations needed to make this function linear. b) Predict the vertical thickness of a giraffe if the shoulder-hip length is 145 cm. c) Turn the linear equation into a power function (without logs). Animal Length (cm) Height (cm) Ermine Dacshund Indian Tiger 12 35 90 122 153 12 45 73 135 Llama Indian Elephant...