clc
clear
disp('Diamond Stewart')

N = 100;

x = linspace(1,100,N);

f1 = exp(x) ;
f2 = x.^3 ;

subplot(2,2,1)
plot(x,f1,'r',x,f2,'b','LineWidth', 1.5), grid on
title('Linear Scale')
xlabel('x')
ylabel('f(x')
legend('e^x' , 'x^3')

subplot(2,2,2)
loglog(x,f1,'r',x,f2,'b','LineWidth' ,1.5), grid on
title('Log-Log Scale')
xlabel('x')
ylabel('f(x)')
legend('e^x', 'x^3')

subplot(2,2,3)
semilogx(x,f1,'r',x,f2,'b','LineWidth' ,1.5), grid on
title('Semilog-X Scale')
xlabel('x')
ylabel('f(x)')
legend('e^x', 'x^3')

subplot(2,2,4)
semilogy(x,f1,'r',x,f2,'b','LineWidth' ,1.5), grid on
title('Semilog-Y Scale')
xlabel('x')
ylabel('f(x)')
legend('e^x', 'x^3')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: