close clear, clc, clf %% Load Excel Sheet filename = {'CV_eleccell_23 10mVps pH8 500mMNa2CO3 AgAgCl'}; % Read out raw data for n = 1:length(filename) raw{n} = readtable(filename{1,n},'HeaderLines',1); % read the complete .txt file without the header scan{n} = raw{1,n}{:,4}; we_pot{n} = raw{1,n}{:,5}; % potential of working electrode in V current{n} = raw{1,n}{:,3}; % measured curren in A end % Plot CV measurements figure(1) for n = 1:length(filename) plot(we_pot{n}+0.211,current{n}*10^6,'linewidth',2.0,'Color','k') end axis tight xlabel('Potential (V vs SHE)') set(gca,'XMinorTick','on', 'fontsize',18) ylabel('Current (µA)')