I keep getting this error but I checked my code again and again and can't find anything.
Error using vertcat Dimensions of matrices being concatenated are not consistent.
Error in splitapply>localapply (line 253) finalOut{curVar} = vertcat(funOut{:,curVar});
Error in splitapply (line 132) varargout = localapply(fun,splitData,gdim,nargout);
Could anyone tell me why this is happening?

댓글 수: 2

Jonas
Jonas 2022년 5월 17일
can you give us the input to splitapply please
Jan
Jan 2022년 5월 17일
An answer requires to know, what your inputs are. It is impossible to fix a problem without seeing your code.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 5월 17일

0 개 추천

Sometimes the cause of this is having used a function such as max() that operates along the first non-scalar dimension, together with a group that turns out to only have one row. When you use splitapply() with functions that operate along the first non-scalar dimension, you should be sure to specify the dimension to operate on.

카테고리

질문:

2022년 5월 17일

답변:

2022년 5월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by