Index problems after version upgrade
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi!
I have a Simscape model running with R2020a. Now I upgraded to R2021a.
Without any changes I get the following error when compiling the network:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/637025/image.png)
Checking the release notes nothing pointed me on something that could cause the problem. Is there any thing known that R2020a is more tolerant that R2021a?
2 commentaires
Walter Roberson
le 31 Mai 2021
I am not clear as to what the error is conveying. Is it saying that you have a 3 x 1 array that was declared 3 x 1, but that you are only using a scalar index A(K) instead of A(K,1) ?
Or is it possible that the array has been switched to zero based indexing, but you have coded a 1-based index number?
Réponses (0)
Voir également
Catégories
En savoir plus sur Troubleshooting 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!