简体   繁体   中英

Octave to Matlab, Error using ==> vertcat, CAT arguments dimensions are not consistent

I've a trouble rarely, because I'm work whit octave It's works, but when I try to run in Matlab I get the mistake:

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.

The code that get the problem is:

   matrizJugadas = [ 
        '1'   '2'   '3' ; 
        '4'   '5'   '6' ; 
        '7'   '8'   '9' ;
        '10'  '11'  '12'
   ];

what it's the trouble?

Thanks!!.

This is 6 elements wide:

[ '10'  '11'  '12' ]

It's equivalent to

'101112'

and also

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

but this is only 3 elements wide:

[  '1'   '2'   '3' ]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM