% xdat.m                             1992AUG30        Steve Mann, Shawn Becker
%
% Displays an image, using xdat.
% Provides the full xdat capability by passing submatrixing operations to shell
%
% Usage: xdat(file, submatrixing_operation)
% Example usage: xdat('/radio/steve/perspectivepics/red','c 0 /4 /4')
%
% Assumes that the filename ``deleteme_script.csh'' may be used

% function shesellscshellsdownbythecshore(filename,suboperation)
function she(filename,suboperation)

% s1 = '!echo xdat ';
% s2 = filename;
% s3 = '\\\"[';
% s4 = suboperation;
% s5 = ']\\\" > deleteme_deleteme_script.csh';
% s = [s1 s2 s3 s4 s5]
% eval(s)

eval(['!echo xdat ' filename '\\\"[' suboperation ']\\\" > deleteme_deleteme_script.csh'])

!source deleteme_deleteme_script.csh
%(with 'source' the file doenst need to have execute permission)
!cat deleteme_deleteme_script.csh
!rm deleteme_deleteme_script.csh

