![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/284358/image.png)
Generates for loop for Stress and Strain
14 views (last 30 days)
Show older comments
I am given a problem where I have to generate data point to plot. This values will show how a biomaterial is reacting.
Here are the values given to me.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/284167/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/284168/image.png)
Question : Model the elastic-plastic behavior of the sample polymer given above. Create a Matlab
program to model the above equations to plot a stress-strain curve.
This what I done so far yet my for loop is not working; thus I can generate the nessary data points to plot. Please help I am not very verse in Matlab.
E1=4.0; %4 is in GPa
E2=5.0; %5 is in GPa
Mu= 1.2*10^5; %this measures creep
stressO = 800*10^6; %this is initial stress
for i=0:stressO
data.less(i)=i/(E1); % Yielding when applies stress is less than initial stress
end
for i=stressO:(1.5*10^9)
data.great(i)=(i/(E1))+((i-stressO)/E2); % Yielding when applies stress is less than initial stress
end
subplot (2,1,1)
plot (data.less);
subplot (2,1,2)
plot (data.great);
0 Comments
Accepted Answer
See Also
Categories
Find more on Stress and Strain in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!