04-09-2010 06:27 AM
I have an array 'A1' of 'N' elements. I want to create an array 'A2' of 'N-1' size having first element as A1[1] - A1[0], 2nd element as A1[2] - A1[1], and so on .
then I want to plot the A2 array on the graph for analysis.
i.e i want to subtract the successive elements in an array and plot a graph of the subtracted values.
please help me
Thanks in advance.
04-09-2010 06:34 AM
Use Array subset with 1 as index/offset, wire both arrays to a '-' and the result is an array with a[1]-a[0],a[2]-a[1] and so on.
/Y
04-09-2010 06:37 AM
Hi,
Take a look at the attached example.
Hope it helps.
Paulo