Scale Problem

I have the following problem...

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.
I don't understand what you are trying to do. It is not clear what you are trying to sum.

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.

problem solved.... i was trying to sum two waves whit distint number of points, the solution, i do a curvefit of one of my waves whit the fitcurve having the number of points of the second wave, now i can the operation whitout problems..

thanks for the help hrodstein
purozongo wrote:
problem solved.... the solution, i do a curvefit of one of my waves ...


See this Code Snippet for a function that also might solve your problem.

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH