clc
clear
disp('Zhoria Renfus')


x = 1:100;

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

subplot(2,2,1);
plot(x,f1,'b',x,f2,'r');
title('Linear Scale');
xlabel('x');
ylabel('y');
legend('f1(x) = e^x','f2(x) = x^3');

subplot(2,2,2);
loglog(x,f1,'b',x,f2,'r');
title('Log-Log Scale');
xlabel('x');
ylabel('y');
legend('f1(x) = e^x','f2(x) = x^3');

subplot(2,2,3);
semilogx(x,f1,'b',x,f2,'r');
title('Semilog-X Scale');
xlabel('x');
ylabel('y');
legend('f1(x) = e^x','f2(x) = x^3');

subplot(2,2,4);
semilogy(x,f1,'b',x,f2,'r');
title('Semilog-Y Scale');
xlabel('x');
ylabel('y');
legend('f1(x) = e^x','f2(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: