Index: mttroot/mtt/bin/trans/make_ssim ================================================================== --- mttroot/mtt/bin/trans/make_ssim +++ mttroot/mtt/bin/trans/make_ssim @@ -45,10 +45,16 @@ endif y_par = [y_par, mtt_data(:,3:2:2+ny2)]; x = mtt_data(:,3+ny2:2+ny2+nx2); endfor endif + + if nargout>3 + ## Create time vector + [N,M] = size(y); + t = simpar.dt*[0:N-1]'; + endif; endfunction EOF } Index: mttroot/mtt/bin/trans/mtt_header ================================================================== --- mttroot/mtt/bin/trans/mtt_header +++ mttroot/mtt/bin/trans/mtt_header @@ -10,10 +10,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.44 2002/05/01 17:30:56 geraint +## Improved pre-processor directives to better accommodate future alternatives (matlab) +## if necessary. +## ## Revision 1.43 2002/04/30 23:27:00 geraint ## Replaced octave_map with columnvector in simpar.cc. Not quite as descriptive but ## standardises the interfaces somewhat and reduces the dependency on liboctinterp ## (and thus libreadline, libkpathsea, libncurses, etc). ## @@ -349,11 +353,11 @@ ;; ssim) states=no; inputs=no; parameters=no; - output='y,y_par,x' + output='y,y_par,x,t' args='x0,par,simpar,u,index' ;; tf) states=no; inputs=no;