Forum Discussion
Altera_Forum
Honored Contributor
18 years agoDSP builder - loading and indexing a vector
Hi I'm using the DSP builder in Simulink (Matlab), where I am implemeting a split-radix FFT. I would like to load in a vector from my workspace and then adress each element in the vector as I ...
Altera_Forum
Honored Contributor
18 years agoYou (sort of) explain what you want to achieve but don't really say what the problem is. Are you saying that you get an error when you execute the code you gave?
If so then it's because your brackets are wrong. MATLAB uses "(" and ")" for array indexing. e.g. r1 = x(i) + x(j)