how to calculate summation of absolute value of incoming digital data over a cycle period for example 64 samples in a cycle using matlab or simulink
∑abs|d1(k)| for k=0 to 64
No products are associated with this question.
There are a couple options available:
function y = avg64( u ) persistent x; if( isemtpy( x ) == true ) x = zeros( 64, 1 ); end
x = [ abs(u), x( 2 : end ) ]; y = x;
Play games and win prizes!Learn more