% ReactionOrder.m
% Concepts: plot, subplot, loglog, semilogx, semilogy
% Done by Subramanian M
% on 6-June-2022
close all; clear; clc;
% define the row vector time in minutes
t = [1, 6, 11, 16, 21, 26, 50];
% define the row vector concentration (mol/L)
cA = [53.7, 31.3, 10.8, 7.8, 2.2, 1.65, 0.08];
subplot(2,2,1)
plot(t,cA,'o-')
grid on
xlabel('t (min)')
ylabel('C_A (mol/L)')
title('Linear Plot')
subplot(2,2,2)
loglog(t,cA,'o-')
grid on
xlabel('t (min)')
ylabel('C_A (mol/L)')
title('Log-Log Plot')
subplot(2,2,3)
semilogx(t,cA,'o-')
grid on
xlabel('t (min)')
ylabel('C_A (mol/L)')
title('SemiLogX Plot')
subplot(2,2,4)
semilogy(t,cA,'o-')
grid on
xlabel('t (min)')
ylabel('C_A (mol/L)')
title('SemiLogY Plot')