Question: fix errors. %% Part (a): Linear fit to ln(y) Y = log(y); X = [ones(size(t)), t]; [Q, R] = qr(X, 'econ'); c = R
fix errors. %% Part (a): Linear fit to ln(y) Y = log(y); X = [ones(size(t)), t]; [Q, R] = qr(X, 'econ'); c = R \ (Q' * Y); % Compute the best fit (fit values for ln(y), at t) fit = c(1) + c(2)*t; %
Have used tight axis functionality? 0% (6%) axis tight must be used exactly once outside comments! Is "a" computed correctly? 6% (6%) Is "b" computed correctly? 6% (6%)Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
