|
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
Error in ==> Energy_Yield_Model at 210
X(j,:)=[X(1:j-1,:) X(j+1:end,:)];
>> size(X(1:j-1,:))
ans =
1 1480
>> size(X(j+1:end,:))
ans =
715 1480
I'm trying to loop through for each j that falls under an if statement and if it does, remove a row from my matrix at that point. What am I doing wrong or not understanding here? my columns are the same size and the dimensions are the same so shouldn't this work? I am only changing in the j or rows direction.
|