Matlab for loop plotting, how to join all the points. Please help
조회 수: 1 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155571/image.png)
for le = les:100:len
E = 200000;
fex = (pi^2*E)/((le/rx)^2);
fey = (pi^2*E)/((le/ry)^2);
fe = min(fex,fey);
if fy/fe <= 2.25
fcr = (0.658^(fy/fe))*fy;
else fcr = 0.877*fe;
end
if bf/(2*tf) <= 0.56*sqrt(E/fy)
Qs = 1;
elseif bf/(2*tf) > 0.56*sqrt(E/fy) && bf/(2*tf) < 1.03*sqrt(E/fy)
Qs = 1.415-0.74*(bf/(2*tf))*sqrt(fy/E);
else
Qs = (0.69*E)/(fy*(bf/(2*tf))^2);
end
if d1/tw >= 1.49*sqrt(E/fcr)
beu = 1.92*tw*sqrt(E/fcr)*(1-0.34/(d1/tw)*sqrt(E/fcr));
if beu > d1
beu = d1;
end
else beu = d1;
end
Qa = beu/d1;
Q = Qs*Qa;
if (Q*fy)/fe <= 2.25
fcrn = Q*(0.658^((Q*fy)/fe))*fy;
else
fcrn = 0.877*fe;
end
pn = fcrn*Ag;
usa = 0.9*pn*10^-3;
hold on
p3 = plot(le,usa,'xk');
hold off
Im getting all the points but how can I join the points together to form a smooth line?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!