![](/img/trans.png)
[英]How do i handle “Error using vertcat Dimensions of matrices being concatenated are not consistent” in Matlab?
[英]Octave to Matlab, Error using ==> vertcat, CAT arguments dimensions are not consistent
我很少遇到麻煩,因為我工作的頻率是八度,但是有效,但是當我嘗試在Matlab中運行時,我得到了錯誤:
The expression on this line will generate an error when executed. The error will be: Error using ==> vertcat
CAT arguments dimensions are not consistent.
??? Error using ==> encuentraPares at 15
Error using ==> vertcat
CAT arguments dimensions are not
consistent.
遇到問題的代碼是:
matrizJugadas = [
'1' '2' '3' ;
'4' '5' '6' ;
'7' '8' '9' ;
'10' '11' '12'
];
有什么麻煩嗎?
謝謝!!。
這是6個元素:
[ '10' '11' '12' ]
相當於
'101112'
並且
[ '1' '0' '1' '1' '1' '2' ]
但這只有3個元素寬:
[ '1' '2' '3' ]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.