Concatenate/FREE flag


I'd like to see a /FREE flag for the Concatenate command. I like to use MatrixOP/FREE, Duplicate/FREE or Make/FREE but in the end I still need to use KillWaves for cleaning up temporary matrices that were generated using Concatenate.

C
I second.
Also, can there be a version of concatenate that uses a wave reference wave for the source waves?
e.g.
Wave/wave sourcewaves
concatenate/free sourcewaves, mydestwave
A workaround that seems to do the trick is to place the destination wave in a free datafolder:
    DFREF TempFolder=NewFreeDataFolder()
    Concatenate/O {Wave1, Wave2}, TempFolder:CombinedWave
ChrLie wrote:
I'd like to see a /FREE flag for the Concatenate command. I like to use MatrixOP/FREE, Duplicate/FREE or Make/FREE but in the end I still need to use KillWaves for cleaning up temporary matrices that were generated using Concatenate.

C


You might be able to get what you want using MatrixOP/FREE. See catRows() and catCols().
Igor wrote:
ChrLie wrote:
I'd like to see a /FREE flag for the Concatenate command. I like to use MatrixOP/FREE, Duplicate/FREE or Make/FREE but in the end I still need to use KillWaves for cleaning up temporary matrices that were generated using Concatenate.

C


You might be able to get what you want using MatrixOP/FREE. See catRows() and catCols().


Good point -- I forgot about these new options. They will work for concatenating 2 1d waves of differing lengths or N 1d waves of same lengths. One can use
 MatrixOP /FREE w3=catRows(w1,w2)
for 1d waves w1 and w2

But more generally, a /FREE flag for the operation would be nice. It's also nice if operations of the same type have, to the extent possible, the same options.