Code:
t = [1950 1985 2000 2005 2010 2020];
tq = 1950:2100;
PFA = [11.197341 6.817398 6.056209 5.293600 4.327147
3.442431];
ypi = interp1(t,PFA,tq,'linear','extrap');
p = polyfit(tq, ypi, 2);
yp = polyval(p,tq);
subplot(2,1,1);
plot(tq,ypi);
title('polynomial fit');
fprintf('2 order polynomial = %e*t^2 + %e*t + %e
',p(1),p(2),p(3));
lPFA = log(ypi);
pe = polyfit(tq, lPFA, 1);
ype = polyval(pe,tq);
subplot(2,1,2);
plot(tq,ype);
title('exponential fit');
alpha = exp(pe(2))
beta = pe(1)
fprintf(' exponential = %e*e^(%e*t) ',alpha,beta);
Output:


Q3b In the Q3b.m file, plot the PFA against the year as blue circles in a...
4 MARKS QUEStION 3 Background You are part of a team working for the United Nations Environment Programme (UNEP) to investigate the deforestation process in Borneo. You are provided six images of the forest area in Borneo from 1950-2020 which comprise of historical and projection data. Forests are represented as green pixels and deforested areas as yellow pixels. Q3a In the Q3a.m file, use the imread() function to read the images. For each year (1950, 1985, 2000, 2005, 2010, 2020),...