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

Please help solve this with Matlab 20. Plot y = 3x2 + 9x + 5 using fplot. If you

ID: 2262342 • Letter: P

Question

Please help solve this with Matlab

20. Plot y = 3x2 + 9x + 5 using fplot. If you're using an older vension of Matlab then ezplot is fine as well. Assigning this to p20 is just a way of the grading software checking it. Assign to p20 21. The goal of this for loop is to add the numbers 2,4,6,.,354. Set the variable p21 equal to 0. Then run a for loop which goes through all those numbers, adding them each in turn to p21, changing p21 each time. 22. The goal of this while loop is to find the first number whose factorial has 46 digits (meaning it's at least equal to 1045). Set the variable p22 equal to 1. Then, while p22! is less than 1045, increase p22 by 1, changing p22 each time. Note that Matlab has a command for factorial 23. Set the variable p23 equal to 27. Then run a for loop which goes through the numbers 51 52533 and adds them in turn to p23, changing p23 each time. 24. Set the variable p24 equal to 9. Then run a while loop which, while p24 is less than 672193048, squares it and adds 4, changing p24 each time.

Explanation / Answer

20) y = @(x)(3*x.^2+8*x+2);
p20 = fplot(y,[-10 10]);

21) p21 = 0;
for k = 2:2:492
p21 = p21+k;
end

22) p22 = 1;
while factorial(p22) < 1e+41
p22 = p22+1;
end

23) p23 = 20;

for k = 1:45

p23 = p23 + (6^k/(14^(k+1)));

end

24) p24 = 8;
while p24 < 795157877
p24 = (p24^2)+1;
end

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