Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Plot:Connect few points and form a line
Posted:
Nov 12, 2013 4:30 PM


%Elastic ModulusYM=YA=Y(MPa) Y=62000;
%Transformation Temp(degree C) MF=10; MS=17; AS=31; AF=44;
%Transformation ConstatnsCM=CA=C(MPa/degree) C=7;
%Max Recoverable Strain SL=0.06;
%Room Temptheta(degree) theta=23;
Tb=C*(AFMS);
Tc=Tb+C*(MSMF);
Td=TcC*(ASMF);
T= Tb:Tc;
%Fraction of MartensiteXi Xi3=(0.5).*cos((3.14159).*((theta(T/C)MF)./(MSMF)))+(0.5);
Sb=Tb/Y;
Sc=Sb+SL*Xi3;
Sd=Sc(TcTd)/Y;
Strain=[0 Sb Sc3 Sd]; Stress=[0 Tb Tc Td];
plot(Strain,Stress) axis([ 0 0.065 0 250])
I am trying to connect point Sb Tb &Sc Tc& Sd Td together as a line, but the problem is that value between location B to C changes
Matlab gives me an error of "Vectors must be the same lengths."
I think because I have T range from Tb to Tc (T=Tb:Tc) and this is the reason give me error. Is there anyway to fix it? I run fine without having T in the range, but as a solid number.
Thank you



