function y = deref2(x,char)
%
% x    = the input matrix
% char = the seperating character
%
% deref2 returns string matrix y whose elements 
% are seperated by character char, implied that 
% the input string vector x must be evenly 
% spaced by char.
%
% Note: For unevenly spaced string vector, use
% derefurl.m instead.
%
% Note: this function would replace derefdat in 
% the future.
%

% klee 08/11/99

i = findstr(x,char);
i = [0 i];
y = [];
for j = 1:length(i)-1
  y(j,:) = x(i(j)+1:i(j+1)-1);
end
return