Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

for matlab The growth rate of a tree is predicted by G = ln 1 / m ^ 2 + b / m + c

for matlab
The growth rate of a tree is predicted by G = ln1/m^2+ b/m +c) where m is the age of the tree, G is the growth, and a, b and c are constants. A scientist performed an experiment and measured the following data points: m,,={2,5,10,15,20,25,30,35,40} months
and Gexp ={5.7,41.,3.3,2.5,2.1,2.2,1.7,1.6,1.3} centimeters. Write a function called PlantGrowth to calculate the coefficients a, b and
ce by using regression given experimental datasets mexp and Gexp, and estimate the growth of the plant at a given month.
Restrictions: The function PlantGrowth must use polyfit. Hint: The dataset should be linearized before performing a polynomial fit.
Ex:
m =[2510152025303540]; G =[5.74.13.32.52.12.21.71.61.3]; [growth]= FitPlant(m, G,50)
produces
growth =
1.3712
Write a function so that FitPlant(m, G,100) returns growth =0.9181.
function [growth]= FitPlant(m, G, month)
% Your code goes here
end
code to call function
m =[2510152025303540];
G =[5.74.13.32.52.12.21.71.61.3];
[growth]= FitPlant(m, G,100)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions