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

1 view (last 30 days)

Answers (1)

Torsten
Torsten on 25 Nov 2023
Moved: Torsten on 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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!