In MATLAB, I want to declare a 4D matrix, where the last dimension can take two values (a 2-column vector is the last dimension). The trouble is, zeros(...) only accepts scalars, so I can't declare the vector within the matrix declaration. Any thoughts on how to do this?
i.e. in the below, how do I declare this array so that 'output' actually looks like output=zeros(some_number,2)
;
beg=zeros(nsubj,nvids,nmark,output);