EXAMPLE OF MATLAB COMMANDS TO HELP YOU GET STARTED
» load d:\research\overland\scan3text.txt % loads file
» d=scan3text; % copies file to new file "d"
» clear scan3text % junks old file (too many letters!)
» who % views Matlab workspace
Your variables are:
d
» size(d) % gives size of d (rows columns)
ans =
359424 1
» plot(d) % plots d
» whitebg % changes plot background (better print)
» xlabel('Sample Number')
» ylabel('Voltage')
» title('Measurements of Conveyor Voltage')
» figure(2) % opens new figure window
» hist(d) % plots histogram of d
» xlabel('Conveyor Voltage Bins (volts)')
» ylabel('Number of Measurements in a Bin')
» title('Hisotgram of Conveyor Voltage')
» zoom on %allows mouse to specify plot zoom region
» d1=[d(1:18500);d(19500:359424)]; %create d1 with first spike removed
» plot(d)
» figure(3)
» plot(d1)
Help Hints:
» help corrcoef
CORRCOEF Correlation coefficients.
CORRCOEF(X) is a matrix of correlation coefficients formed
from array X whose each row is an observation, and each
column is a variable.
CORRCOEF(X,Y), where X and Y are column vectors is the same as
CORRCOEF([X Y]).
If C is the covariance matrix, C = COV(X), then CORRCOEF(X) is
the matrix whose (i,j)'th element is
C(i,j)/SQRT(C(i,i)*C(j,j)).
See also COV, STD.
» help histogram
histogram.m not found. [i.e. you must know the correct name to get help]