Deletepoints from 2D wave

Hi,

I am looking for syntax to use deletepoints function to delete points from a 2D wave. The help on deletepoints doesn't have enough details.

Thanks in advance.

johnweeks

Please tell us more. What exactly do you want to delete? Rows? Columns? Multiple? One?

To delete column 5 from a matrix:

DeletePoints/M=1 5, 1, matrixwave

To delete row 5:

DeletePoints/M=0 5, 1, matrixwave

Since the zero dimension (rows) is default, the second one doesn't need the /M=0 flag, but it doesn't hurt.

Replace "matrixwave" with the actual name of your matrix.

johnweeks

You can't do that to a matrix. If you delete one point from a row, what happens to the last column?

Or do you want to replace that element with something like Nan?

aclight

If you're using Igor 7 or later, you can use the SplitWave operation to easily split a multidimensional wave into multiple lower dimensional waves (in your case, 2D->1D).

aclight

And I see now that you asked a different question about SplitWave, so I guess you already know about it :)