MATLAB: How to resolve subscript mismatch error

subscript mismatch

Subscripted assignment dimension mismatch (size [1 x 1] ~= size [:? x 1]).
LIP(:, 1) = temp(:);
temp = temp';
LIP(:, 2) = temp(:);

Best Answer

LIP = repmat(temp(:),1,2);
Related Question