function display_signature(f_name) %% display_signature(f_name) %% f_name is a string FID = fopen(f_name,'r'); %% Open file for reading if FID >= 0, %% If file is there and it is readable.. [N,COUNT] = fscanf(FID,' %d',1); XY = zeros(N,2); for i=1:N, XY(i,:) = fscanf(FID,'%f',2)'; end; fclose(FID); figure(1); plot(XY(:,1),-XY(:,2),'.'); hold on figure(1); plot(XY(:,1),-XY(:,2),'g'); hold off title(f_name); else, error(['File ' f_name ' either not found or not readable']); end;