Hi everybody,
I think you know about command "accumarray" in Matlab. That command is not supported in HDL Coder( convert code Matlab to VHDL). So, I try to write down another function which is same purpose with "accumarray".
Firstly, I must understand how "accumarray" is run in its documentary.
I understand the way it works with 1- column matrix subs (subs is variable of accumarray – accumarray(subs, val)). But with 2- column matrix subs , I really do know how it is running.
Example:
With matrix subs = [1 2 3 1 2 4] (only first column), I can get the number array 205-207-103-106.
But when adding with the rest column, I do not know how it is working, and how to get those number position.
Thank you for your reading!
Best Answer