Wire both 1-d arrays into a for loop set to go N-1 iterations, disable
indexing, index out i and i+1, subtract, subtract and divide, then enable
indexing the output so it will form the output 1d array. Your result will
necessarily have one less point than your input arrays.
"summer" wrote in message
news:50650000000800000005690000-1031838699000@exchange.ni.com...
> In this vi, I would like to calculate for every Y (50 different
> amplitudes and 60 different times) the slope of the Ys according to
> the amplitude differences: Y(i+1)-Y(i)/X(i+1)-X(i) (X is the
> amplitude). Y is a 2D Array, how could I do this if Y is a 1D Array?
> Summer