Info

この質問は閉じられています。 編集または回答するには再度開いてください。

yes you are right it was named as sign_PV my mistake,actually I changed the name from sign_PV to stress_PV because it was conflicting with the Matlab command. I did what you said but still there is one error it is showing: Subscript indices must eith

1 回表示 (過去 30 日間)
Prateek Srivastava
Prateek Srivastava 2017 年 12 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
yes you are right it was named as sign_PV my mistake,actually I changed the name from sign_PV to stress_PV because it was conflicting with the Matlab command. I did what you said but still there is one error it is showing: Subscript indices must either be real positive integers or logicals.
Error in fatiguelife (line 14) s1=stress_PV(i); I am also attaching the script please find the attachment.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 12 月 24 日
Your code does not assign any value to i before it uses i
  11 件のコメント
Walter Roberson
Walter Roberson 2017 年 12 月 25 日
I asked "you then want to "backtrack" so that next time around you would be checking entries 2, 3, 4 and (now modified) 5" and you said "Yes", so what you are describing as happening seems to be what you have already said you want to happen.
Prateek Srivastava
Prateek Srivastava 2017 年 12 月 25 日
If this conditions is true abs(s2-s1)>=abs(s2-s3)&&abs(s3-s4)>=abs(s2-s3) than I extract the point and I move back so that I could get the iteration correct.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by