Error and can't find whats causing index exceed matrix dimension
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
liu James
il 28 Dic 2016
Commentato: liu James
il 28 Dic 2016
I'm getting this:
Index exceeds matrix dimensions.
Error in Test3 (line 51)
if (status == 0) && (a(1) > a(2))
Although it says the line, but I can't find what is actually causing it. All the cells have same dimensions. Please help
2 Commenti
the cyclist
il 28 Dic 2016
Modificato: the cyclist
il 28 Dic 2016
What is the calling syntax of the functions?
Also, maybe I missed it, but I don't see any reference to an object called "Test3" in what you uploaded.
Risposta accettata
Walter Roberson
il 28 Dic 2016
bb{1,5}(:,7) does not match datenumber at all, causing k{5} to be empty, which cases b{5} to be empty, which causes a=b{t} to be empty. Your code assumes a has at least 6 elements.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!