Error while using size(A,1)?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Alessandro
il 17 Dic 2013
Modificato: Alessandro
il 17 Dic 2013
Hello, I am trying to evaluate the number of rows of a certain matrix 'Conn' using
d = size(Conn,1)
If I initialise the matrix from an empty workspace like this
Conn = [1 2 3; 4 5 6]
the command displays the correct answer
d = 2
When using the exact same command inside a bigger script, I get this error message:
Subscript indices must either be real positive integers or logicals.
Anybody has a clue?
Thanks.
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!