Scale Problem
purozongo
2 waves... same X. (same duration), but different number of points. and i need to do the sum of both, i try w3[x]=w1[x]+w2[x], w1 and w2 whit different number of points but.. not result.
any idea?
thanks.
Perhaps this example will help you:
Make/O/N=10 w1 = p; SetScale/P x 0, .1, "s", w1
Make/O/N=11 w2 = p; SetScale/P x 0, .1, "s", w2
Make/O/N=10 w3; SetScale/P x 0, .1, "s", w3;
Edit w1, w2, w3
w3 = w1(x) + w2(x)
To understand the meaning of x on the righthand side of the assignment statement, execute this command:
DisplayHelpTopic "Waveform Arithmetic and Assignment"
and read that help topic.
April 29, 2008 at 06:32 pm - Permalink
thanks for the help hrodstein
May 7, 2008 at 06:23 am - Permalink
See this Code Snippet for a function that also might solve your problem.
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
May 7, 2008 at 12:08 pm - Permalink