Let\'s augment our plotting skills a bit. The following script declares two cons
ID: 3649268 • Letter: L
Question
Let's augment our plotting skills a bit. The following script declares two constants (p0,k) and two vectors (t,p). The two vectors are then plotted (p vs. t) and a legend is added to the plot. Augment the code by adding in the command to add a title to the plot, as well as adding in the two strings for the x and y axis labels. The label for x is time (years) and the label for y is population (# of individuals). The relevant MATLAB help page can be found here http://www.mathworks.com/help/techdoc/ref/plot.htmlp0 = 100;
k = 1.5;
t = linspace(0,10,120);
p = p0*exp(k*t);
plot(t,p,'-b');
legend('population');
_____('Population vs. Time');
xlabel('____');
ylabel('____'):
Explanation / Answer
plot(population vs. time) xlabel(population) ylabel(time)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.