clear;   %% clears memory - useful if you run many scripts in the same session

data  = load('test2.csv');   % test2.csv is exported from Waveforms. It contains only data. The contents of the file are stored in a variable called data which will be a table with three columns 
time  = data(:,1);           % stores the 1st column of data in a variable called time - the : means take all rows, the 1 means 1st column
V1    = data(:,2);           % stores the 2nd column of data in a variable called V1   - the : means take all rows, the 2 means 2nd column
V2    = data(:,3);           % stores the 3rd column of data in a variable called V2   - the : means take all rows, the 3 means 3rd column

angle = (V1-2.5)*10;         % convert voltage to angle (the numbers are made up)
plot(time,angle)

xlabel('time (seconds)');    % add x axis label - can also add by point and click on the figure
ylabel('angle (degrees)');   % add y axis label - can also add by point and click on the figure
