I keep getting this error 'Attempted to access x(3); index out of bounds because numel(x)=2.' It's really frustrating!!!
MATLAB: Need help with this Matlab script question? For loop!!
for loopnumel error
Related Question
- How to create a vector with for loop
- Setting up vector function
- How to make piece-wise function with if statement
- Can I use a NARX neural net to learn a time series of the form: y(k) = K0 * y(k-1) + K1 * x(k) + K2 * x(k-1) + K3 * x(k-2) where x(k) is the input time series
- If a=[1,2,3,4] how can i get b=[ (1+2),(1+3),(1+4),(2+3),(2+4),(3+4) ] using for loops,Thanks
Best Answer