How to extract x wave from matrix?

I have several time series of position stored in a matrix called MultHandPx. The x wave of the matrix contains the time points (evenly spaced). I want to extract a specified time series, stored in column "j" into a wave called SnglHandPx.

- I use the MatrixOp operation "col" to extract the j-th column of MultHandPx:

MatrixOP /O/S $oneDimWaveName = col(oneDimWaveName, colNum)

where oneDimWaveName = "SnglHandPx", oneDimWaveName is MultHandPx, and column = j

- The resulting wave, SnglHandPx, has the correct data, but does not have the X wave of MultHandPx

- How can I extract the x wave of a Matrix along with the data column?

 

I'm wondering what you mean by "x wave".  If you are thinking of the wave's scaling you can use the CopyScales operation or extract the two parameters in question using DimDelta() and DimOffset() and apply them using the SetScale operation.

 

A.G.

Or if your matrix is named "mat":

Make/D/O/N=(DimSize(mat,0)) matX = IndexToScale(mat,p,0)

Ken

Yes, by "x wave" I meant the wave's scaling. Thank you A.G. and Ken for your suggestions.