# MLife Simulation

**URL:** <https://forums.nlr.gov/t/mlife-simulation/1359>\
**Category:** Computer-Aided Engineering Software Tools\
**Created:** [June 1, 2016, 4:16pm UTC](https://forums.nlr.gov/t/mlife-simulation/1359 "2016-06-01T16:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tadele.Wondmagegn](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@Tadele.Wondmagegn](https://forums.nlr.gov/u/Tadele.Wondmagegn)\
**Post date:** [June 1, 2016, 4:16pm UTC](https://forums.nlr.gov/t/mlife-simulation/1359/1 "2016-06-01T16:16:38Z")

</div>

Hi All,  
I have been using MLife for fatigue analysis, but i encountered a problem -when changing DEL\_Type to 1 and the GoodmanFlag to with goodman correction, MatLab will not proceed simulating it stops with some error messages. Anyone has faced same problem? Or, please help me out of this problem. Thanks!

Regards  
Tadele

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [June 1, 2016, 10:28pm UTC](https://forums.nlr.gov/t/mlife-simulation/1359/2 "2016-06-01T22:28:32Z")

</div>

Dear Tadele,

What error message(s) are you receiving?

Best regards,

---

<div class="post-metadata">

**Author:** ![Tadele.Wondmagegn](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@Tadele.Wondmagegn](https://forums.nlr.gov/u/Tadele.Wondmagegn)\
**Post date:** [June 6, 2016, 8:04am UTC](https://forums.nlr.gov/t/mlife-simulation/1359/3 "2016-06-06T08:04:18Z")

</div>

Dear Jason,

Please find attached picture.

---

<div class="post-metadata">

**Author:** ![Tadele.Wondmagegn](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@Tadele.Wondmagegn](https://forums.nlr.gov/u/Tadele.Wondmagegn)\
**Post date:** [June 6, 2016, 8:10am UTC](https://forums.nlr.gov/t/mlife-simulation/1359/4 "2016-06-06T08:10:22Z")

</div>

Sorry, I could not attach as I reached the quota. below are the errors messages…

subscript indices must either be real positive integers or logicals.

Error in compute\_fatigue\_per\_DEL\_type (line 145)  
binnedCycleCounts(index) = binnedCycleCounts(index) + cycleCounts(c);

Error in compute\_goodman\_fatigue (line 27)  
[aggEquivalentCycles, lifetimeEquivalentCycles, ChannelBasedResultsF, FileBasedResultsF] = compute\_fatigue\_per\_DEL\_type(  
DEL\_Type, DLCs, DLC\_Occurrences, nFatigueChannels, nFiles, windChannelMeans, Fatigue );

Error in compute\_fatigue (line 73)  
Fatigue = compute\_goodman\_fatigue(nFiles, Fatigue, FileInfo.DLCs, FileInfo.DLC\_Occurrences, windChannelMeans);

Error in mlife (line 602)  
Fatigue = compute\_fatigue( FileInfo, Fatigue, windChannelMeans );

Error in mlife\_certification\_tests (line 164)  
mlife(‘Test13.mlif’, '.\Data', '.\Results\Test13');
