2013-03-27 85 views
1

我很麻煩,因爲我工作惠氏八度這是可行的,但是當我嘗試運行在Matlab 我得到了錯誤:八度到Matlab,錯誤使用==> vertcat,CAT參數尺寸不一致

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' 
    ]; 

那是什麼事?

謝謝!!

回答

0

這是6個元素寬:

[ '10' '11' '12' ] 

這相當於

'101112' 

並且還

[ '1' '0' '1' '1' '1' '2' ] 

但是這僅是3個元素寬:

[ '1' '2' '3' ] 
+0

那麼,如何把這個值放在同一個矩陣中呢? – 2013-03-27 23:56:45

+0

@CristianChaparroA .:你期望得到什麼樣的數據類型?你想要什麼尺寸? – 2013-03-27 23:57:59

+0

我需要改變特定位置的值,例如'10'改爲'Q',這是可能的。 – 2013-03-28 00:05:20