% n3movieComparison.m % displays n3sgrams from STRAIGHT in a movie % Eric Oglesbee 2007; modified by DKP 7/24/07 %Note: This script loads two n3sgrams files as .txt into %variables in Matlab. Example: load('n3bid9d_f1_00.txt'); %This will return a variable named n3bid9d_f1_00 that contains the data %from the .txt file. The files n3bid9d_f1_00.txt and n3bid9d_f1_16.txt %must be in the same directory as n3movieComparison.m. Plays slowly. filename1 = n3bid9d_f1_00; %Green Line filename2 = n3bid9d_f1_16; %Blue Line tStart =1; tEnd =360; load('n3bid9d_f1_00.txt'); load('n3bid9d_f1_16.txt'); [row column]=size(filename1); nn = 1:row; xmin = 1; xmax= row; ymin= 0; ymax= 26000; figure for j = tStart:tEnd plot(nn,filename2(:,j),'b',nn,filename1(:,j),'g'); axis([xmin xmax ymin ymax]); F(j) = getframe; end