Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How I do it using MATLAB? Population follows the following exponential growth ru

ID: 2247851 • Letter: H

Question

How I do it using MATLAB?

Population follows the following exponential growth rule, P = P_0 e^r In which P is estimated population at the end of the period of consideration, P_0 is initial population at the start of period, and r is growth rate. Population of Boise is 250,000 today, with a growth rate 40% per year (r = 0.4). What will be the population of Boise in 10 years? Find the maximum, minimum and also mean of the following matrix both column-wise and row-wise. A = [5 7 3 12 1 1 7 3 4 14 8 9 9 10 2 0 11 2 11 2 10 4 7 5] Divide the interval [1 34] into 56 equally spaced values. Once use "linspace" built-in function of matlab and once do it without this command (using colon).

Explanation / Answer

9.

p0 = 250000;
r = 0.4;
p = p0 * (exp(r))^10;

fprintf('Population after 10 years is %d ',p);

10

A = [5 7 3 12; 1 1 7 3; 4 14 8 9; 9 10 2 0; 11 2 11 2; 10 4 7 5]

fprintf('Column wise max =');
for i = max(A)
    fprintf('%d ',i)
end
fprintf(' ');

fprintf('Column wise min =');
for i = min(A)
    fprintf('%d ',i)
end
fprintf(' ');

fprintf('Column wise mean =');
for i = mean(A)
    fprintf('%d ',i)
end
fprintf(' ');

fprintf('Row wise max = ');
for i = max(A')
    fprintf('%d ',i)
end
fprintf(' ');

fprintf('Column wise min = ');
for i = min(A')
    fprintf('%d ',i)
end
fprintf(' ');

fprintf('Row wise mean = ');
for i = mean(A')
    fprintf('%d ',i)
end
fprintf(' ');

11

linspace(1, 34, 56)

diff = (34-1)/55;
1:diff:34

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote