CAT arguments dimensions are not consistent
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi I am getting the following error :
*??? Error using ==> horzcat
CAT arguments dimensions are not consistent.*
But I am pretty sure that the dimensions are consistent. Please see below:
>> fn_trades = horzcat(trades.textdata(2:length(trades.textdata),1:2), trades.data(1:length(trades.data),1:2))
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
>> size(trades.textdata(2:length(trades.textdata),1:2))
ans =
1927 2
>> size(trades.data(1:length(trades.data),1:2))
ans =
1927 2
As you can see, the sizes of the two vectors are the same. So horizontal concatenation should work ??
Any ideas ?
댓글 수: 3
Matt J
2013년 10월 29일
That wouldn't account for a dimension mismatch error. You can cat char with double, e.g.,
>> ['aa' 66,67]
ans =
aaBC
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!