Do not understand how to make my index exceed 1. (thank you)

1 vue (au cours des 30 derniers jours)
Harman Johal
Harman Johal le 25 Nov 2023
Déplacé(e) : Torsten le 25 Nov 2023

Réponses (1)

Torsten
Torsten le 25 Nov 2023
Déplacé(e) : Torsten le 25 Nov 2023
In the first line of the for-loop, you set bstress to a scalar value.
So in the statement
if bstress(i) < NegEstress(i)
bstress(i) does not exist when i > 1.

Catégories

En savoir plus sur Matrix Indexing 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!

Translated by