From that line,
ninteg(1,j:)
is invalid syntax. If you want element j through the end of the vector, you need
ninteg(1,j:end)
Also, if everything in your code consists of vectors (as opposed to two-dimensional arrays), you don't necessarily need that "1" in your indexing.
ninteg(j:end)
would be sufficient. Similarly, if fixsignal is a column vector,
fixsignal
is equivalent to
fixsignal(:,1)
and
fixsignal(:)
All variations select all elements of the first column of fixsignal, or in other words the entire signal.
If you pay attention to the size of the variables in Matlab's Workspace panel, it might help you understand future array size error messages (though probably not in this case, if I have correctly pointed out the problem)
