% datpick.m                                                Steve Mann 1992
%
% datpick('fourierop', 'c 0', 'deleteme') % is equivalent to
%                                         % datpick fourierop"[c 0]" deleteme
%
% shell escape from Matlab has problems with datutils, so I've written some
% utilities to do things in Matlab
%!datpick /net/garden/movies/original/bilko/lucy_lr2.24"[120+1]" deletemelucy
% doesnt work: brackets and quotes cause problems in various places.

function dummy(filein, suboperation, fileout) % returns nothing

% left in for test purposes
%filein='/net/garden/movies/original/bilko/lucy_lr2.24'
%fileout='deletemelucy'
%suboperation='120+1 0+368'
s_beg = ['!echo datpick ' filein '\\\"[' suboperation ']\\\" '];
s_end = ' > deleteme_deleteme.csh';
eval([s_beg fileout s_end])

!source deleteme_deleteme.csh
!rm deleteme_deleteme.csh

