Question: For many metals, deformation changes their physical properties. In a process called cold work, metal is intentionally deformed to make it stronger. The following data
For many metals, deformation changes their physical properties. In a process called cold work, metal is intentionally deformed to make it stronger. The following data tabulate both the strength and ductility of a metal that has been cold worked to different amounts:
| Percent Cold Work (%) | Yield Strength (MPa) | Ductility (%) |
| 10 | 275 | 43 |
| 15 | 310 | 30 |
| 20 | 340 | 23 |
| 25 | 360 | 17 |
| 30 | 375 | 12 |
| 40 | 390 | 7 |
| 50 | 400 | 4 |
| 60 | 407 | 3 |
| 68 | 410 | 2
|
Using a script .m file:
1.Create vectors for these data.
2.Plot these data on a single rectilinear x-y grid with two y-axes.
3.Label the title, x-axis (Percent Cold Work), and both y-axes.
4.Change yield stress to red dashed lines and ductility to blue dotted lines
5.Add a legend.
So far this is the code that I have. What im having trouble with is setting the yield stress to red dashed lines and ductility to blue dotted lines.
%PCW is percent cold work
%YS is yield strength in MPa
%D is ductility percent
clc, clear
PCW = [10,15,20,25,30,40,50,60,68];
YS = [275,310,340,360,375,390,400,407,410];
D = [43,30,23,17,12,7,4,3,2];
a = plotyy(PCW,YS,PCW,D);
title('Strength and Ductility')
xlabel('Percent Cold Work')
ylabel('Yield Strength, MPa');
ylabel(a(2),'Ductility,%');
legend('PCW vs YS','PCW vs D');
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
