associates wave object with mat file $Id: putwave.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $
0001 function wave = putwave(vol,wave) 0002 % associates wave object with mat file 0003 % 0004 % $Id: putwave.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $ 0005 0006 if nargin < 2 0007 error('Need vol and wave as args'); 0008 end 0009 if isstruct(vol),vol = vol.fname;end 0010 if ~ischar(vol), return, end 0011 if ~isa(wave,'phiw_wvimg') 0012 error('Need phiw_wvimg as input'); 0013 end 0014 pr_matfilerw(vol,'wave',wave);