Index exceeds the number of array elements. Index must not exceed 1.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
A Poyser
am 27 Okt. 2022
Kommentiert: A Poyser
am 27 Okt. 2022
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 Kommentare
Akzeptierte Antwort
Torsten
am 27 Okt. 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!