clc;
clear;
close all;
x = linspace(1,100,100);
f1 = exp(x);
f2 = x.^3;
subplot(2,2,1)
plot(x,log10(f1),x,log10(f2))
title('Linear Scale')
xlabel('x')
ylabel('Log10(y)')
legend('e^x','x^3')
grid on
subplot(2,2,2)
plot(x,log10(f1),x,log10(f2))
title('Log-Log Scale')
xlabel('x')
ylabel('Log10(y)')
legend('e^x','x^3')
grid on
subplot(2,2,3)
semilogx(x,f1,x,f2)
title('Semilog-X Scale')
xlabel('x')
ylabel('y')
legend('e^x','x^3')
grid on
subplot(2,2,4)
semilogy(x,f1,x,f2)
title('Semilog-Y Scale')
xlabel('x')
ylabel('y')
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: