Changing Waveform into XY data
Bridgeboy
I can't seem to find any information about this anywhere in the help file or the web forums. There's a portion of the help file that explains how to change XY data into a waveform. There's nothing that shows how to change a waveform into XY data.
I would like help with one of two things.
1. I would like to convert the x-values of a Waveform into it's own data set.
2. I would like to replace the x-values of one data set with the x-values of another.
Any help on this would be appreciated.
Here is one way to do it:
SetScale/P x, 0, .25, "s", test
Make/N=100 xtest
xtest = pnt2x(text,p)
In most cases this is not recommended and indicates you may be taking the wrong approach. To know if that is true in your case I would need to know what you are trying to accomplish.
I would like to replace the x-values of one data set with the x-values of another.
You can copy the X scaling of one wave to another using CopyScales.
April 25, 2014 at 02:21 pm - Permalink
Since you asked what I'm doing, I'm trying to do arithmetic with histograms. The new wave I created would have the result I wanted but not the x-scale. So I was just trying to copy the old scale onto the new one.
April 25, 2014 at 02:43 pm - Permalink
testx = x
Still two lines, just like HRodstein's answer, but perhaps a bit easier to type.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
April 28, 2014 at 09:19 am - Permalink