I have some stress strain data from a tensile test. This is a typical looking stress strain curve. I am trying to figure out a way with matlab to pull the yield stress automatically. The yield strength is simply the .02% offset using the elastic range slope. I am sure someone has done this before. Any help would be great.