Index exceeds the number of array elements. Index must not exceed 1.

1 view (last 30 days)
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)
Unrecognized function or variable 'k'.
Could someone please explain how to rectify the problem

Accepted Answer

Torsten
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)

Tags

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!