C) Display the output of the programs below
y = 3;
for x = 1:10
fprintf('%5d', x)
if (x > y)
break;
end
end
Question 5 A) Write the MATLAB statements required to calculate and print out the squares of all the even integers between 0 and 20. Create a table consisting of each integer and its square with appropriate labels over each column.
[3 Marks] Use MATLAB script expression to get the roots of the polynomial f(x) in the form of an array and evaluate the values of the polynomial at -2 < x < 5. Plot the polynomial with x. f(x) = 9x^3 + 5x^2 + 3x + 7