Deletepoints from 2D wave
vpratap397
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.
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.
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.
May 8, 2020 at 11:16 am - Permalink
I want to delete just one point or may be just a few. Don't want to delete whole row or a column.
thanks
May 8, 2020 at 11:19 am - Permalink
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?
May 8, 2020 at 11:27 am - Permalink
I see your point. Then I guess I have to convert the 2D wave to 1D waves and then delete points separately in each wave.
May 8, 2020 at 11:32 am - Permalink
Yes, that would be what you have to do. And then it is permanently a 1D wave.
May 8, 2020 at 05:00 pm - Permalink
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).
May 11, 2020 at 05:09 am - Permalink
And I see now that you asked a different question about SplitWave, so I guess you already know about it :)
May 11, 2020 at 05:11 am - Permalink
In reply to And I see now that you asked… by aclight
Yes, I did. Thank you.
May 11, 2020 at 07:06 am - Permalink