if ~isempty(D)
E(end+1,:)=[D,CUAB(i),CUSB(ib)];
end
Note that if you try to evaluate
D == []
then the answer is
ans =
[]
Since this is not the true logical, then your code will always evaluate the else body of your if/else code.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!