Index exceeds the number of array elements. Index must not exceed 1.
1 view (last 30 days)
Show older comments
This line of code is giving me the above error message
T = k^2 * Em(k) * (((k^2 - mean_nu) * E(k) + mean_nu *crack_aspect_ratio^2 * Gm * k)^-1 + (( k^2 + (Mean_nu * crack_aspect_ratio^2) ) * Em * (k) - Mean_nu * crack_aspect_ratio^2 * Gm * k)^-1)
Could someone please explain how to rectify the problem
0 Comments
Accepted Answer
Torsten
on 27 Oct 2022
You use Em(k) and Em * (k) in this line of code. Both cannot be correct, I guess.
Further check out whether E(k) is correct: E is treated as an array where the k-th element is referenced or as a function that is called with input argument 1.
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!