Use the polyval function:
A1 = [2 5 8;-3 4 6]; A2 = [4 2;3 5];
x = linspace(-5, 5); % Arbitrary ‘x’
figure(1) Axh = axes('NextPlot','add'); for k1 = 1:size(A1,1) y = polyval(A1(k1,:),x); plot(Axh, x, y) end grid
figure(2) Axh = axes('NextPlot','add'); for k1 = 1:size(A2,1) y = polyval(A2(k1,:),x); plot(Axh, x, y) end grid