Hi,
I have a bit of a similar prob. I need to get different colours or line styles for the multiple lines in the graph plotted by the following two for loops.
b=[0.3:0.05:0.6];
for j=1:length(b);
c=(a/b(j))-(1/R)*(n*vc*scz);
z=[0:10:560];
for i=1: length (z);
syms x;
Srr_conc= (a/b(j))-c*(exp(-T*b(j)*x));
S_bond = a-b(j)*(Srr_conc); %f is the bond stress at any level z from bottom
g = 0;
height=z(i);
Steel_stv(i)= -((2* rin)/( rout^2- rin^2))*int(S_bond, g, height);
Srr_conc2= (a/b(j))-c*(exp(-T*b(j)*z(i)));
Steel_epsv(i)=(1/Es)*( Steel_stv(i) +vs*(rin/(rout-rin))* Srr_conc2);
Conc_stv(i)= scz+rho*(- Steel_stv(i));
Conc_epsv(i)=(1/Ec)*( Conc_stv(i) -2*vc*Srr_conc2);
end
figure (2)
plot(z, Steel_epsv)
hold on
end
figure (2)
title('Steel vertical strains')
xlabel('Height from the bottom of column(mm)')
ylabel('Vertical strain (µ?)')
legend('b_1=0.3','b_2=0.35','b_3=0.4','b_4=0.45','b_5=0.5','b_6=0.55','b_7=0.6')
Can someone please help?
Thanks in advance.
I have a bit of a similar prob. I need to get different colours or line styles for the multiple lines in the graph plotted by the following two for loops.
b=[0.3:0.05:0.6];
for j=1:length(b);
c=(a/b(j))-(1/R)*(n*vc*scz);
z=[0:10:560];
for i=1: length (z);
syms x;
Srr_conc= (a/b(j))-c*(exp(-T*b(j)*x));
S_bond = a-b(j)*(Srr_conc); %f is the bond stress at any level z from bottom
g = 0;
height=z(i);
Steel_stv(i)= -((2* rin)/( rout^2- rin^2))*int(S_bond, g, height);
Srr_conc2= (a/b(j))-c*(exp(-T*b(j)*z(i)));
Steel_epsv(i)=(1/Es)*( Steel_stv(i) +vs*(rin/(rout-rin))* Srr_conc2);
Conc_stv(i)= scz+rho*(- Steel_stv(i));
Conc_epsv(i)=(1/Ec)*( Conc_stv(i) -2*vc*Srr_conc2);
end
figure (2)
plot(z, Steel_epsv)
hold on
end
figure (2)
title('Steel vertical strains')
xlabel('Height from the bottom of column(mm)')
ylabel('Vertical strain (µ?)')
legend('b_1=0.3','b_2=0.35','b_3=0.4','b_4=0.45','b_5=0.5','b_6=0.55','b_7=0.6')
Can someone please help?
Thanks in advance.