Concatenate/FREE flag

ChrLie
Posts: 253
Joined: 2009-01-06
Location: Switzerland

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


andyfaff
Posts: 585
Joined: 2007-09-11
Location: Australia

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


Posts: 154
Joined: 2007-06-29
Location: United States

I'll look into these for IP7.

Larry Hutchinson
WaveMetrics
support@WaveMetrics.com


olelytken
Posts: 49
Joined: 2015-10-12
Location: Germany

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


bech
Posts: 77
Joined: 2007-10-20
Location: Canada

I'd like this, too!


Igor's picture
Posts: 738
Joined: 2007-06-29
Location: United States

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().


bech
Posts: 77
Joined: 2007-10-20
Location: Canada

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.


Back to top