How I can solve this kind of error?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/777478/image.jpeg)
and I am writing this code
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/777483/image.jpeg)
1 commentaire
Réponses (2)
Sobha T
le 25 Oct 2021
If comb5 is a one-dimensional array, then you can use : instead of ,
as shown below
comb5(row:end-1)
0 commentaires
Image Analyst
le 25 Oct 2021
Before the while loop, put this
[rows, columns] = size(comb5) % Don't use a semicolon
what do you see? Chances are you have 1 row and several columns, so you can't reference comb5(1+1, end) because comb5 does not have 2 rows.
0 commentaires
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!