How to Sum a product between 0 to N-1 points.

How to achieve Multiply and Addition of N discrete points from (0 to N-1) using Matlab. For Example FFT,FIR,IIR Filters,MAC unit

 Accepted Answer

sum(A .* (0:N-1))

1 Comment

Sir, Thank you for your response, can you please look at this and provide me an example code for that.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!