To handle concatenation of empty matrices you may need to define a user function. Something like cat2() below, just to give an idea:
cat2(A,B) = isempty(B) ? A : isempty(A) ? B : [A;;;;B]
To handle concatenation of empty matrices you may need to define a user function. Something like cat2() below, just to give an idea:
cat2(A,B) = isempty(B) ? A : isempty(A) ? B : [A;;;;B]