x = [-3:3]
y = 3*x.^4-6*x.^3+8*x.^2+4*x+90;
z = 3*x.^3+5*x.^2-8*x+70;
plot(x, y, 'bo-', 'LineWidth', 2)
hold on;
plot(x, z, 'rd-', 'LineWidth', 2)
grid on;
xlabel('Voltage (V)', 'FontSize', 20)
ylabel('Current in Milliamperes (mA)', 'FontSize', 20)
title('Voltage vs. Current', 'FontSize', 20)
legend('y', 'z', 'Location', 'north');
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0, 0.04, 1, 0.96]);
Best Answer