clc;
clear;
close all;
% Define x from 1 to 100
x = 1:100;
% Calculate functions
f1 = exp(x);
f2 = x.^3;
% Limit values for graph display
f1_plot = min(f1, 1e30);
% Create 2x2 plots
% Top Left: Linear Scale
subplot(2,2,1);
plot(x,f1_plot,'b',x,f2,'r');
title('Linear Scale');
xlabel('x');
ylabel('Function Values');
legend('e^x','x^3');
grid on;
% Top Right: Log-Log Scale
subplot(2,2,2);
loglog(x,f1,'b',x,f2,'r');
title('Log-Log Scale');
xlabel('x');
ylabel('Function Values');
legend('e^x','x^3');
grid on;
% Bottom Left: Semilog-X Scale
subplot(2,2,3);
semilogx(x,f1_plot,'b',x,f2,'r');
title('Semilog-X Scale');
xlabel('x');
ylabel('Function Values');
legend('e^x','x^3');
grid on;
% Bottom Right: Semilog-Y Scale
subplot(2,2,4);
semilogy(x,f1,'b',x,f2,'r');
title('Semilog-Y Scale');
xlabel('x');
ylabel('Function Values');
legend('e^x','x^3');
grid on;
To embed this project on your website, copy the following code and paste it into your website's HTML: