To plot the equation, refer to the code below.
A = [1 0 0 3; 0 1 0 6; 0 0 1 5]
B = A(:,end) %last column for a,b,c
x = linspace(1,10,10); %initializing x values
y = zeros(10,1)'; %initializing y values
deg = size(A,2)-2;
for idx = 0:deg
y = y+ B(idx+1)*(x.^idx);
end
plot(y,x)