Professional Documents
Culture Documents
Column Final
Column Final
fid=fopen('column.txt','w');
fprintf(fid,'Design of columns');
fprintf(fid,'\n----------------');
%inputs
Dx=input('\n Enter the lateral dimension 1 (mm) = ');
Dy=input('\n Enter the lateral dimension 2 (mm) = ');
l=input('\n Enter the unsupported length of column (m) = ');
w=input('\n Enter the axial load over the column (kN) = ');
fck=input('\n Enter the grade of concrete used (N/sq.mm) = ');
fy=input('\n Enter the grade of steel used (N/sq.mm) = ');
d1=input('\n Enter the diameter of compression reinforcement (mm) = ');
%slenderness ratio
sl1=l*1000/Dx;
sl2=l*1000/Dy;
if(p>0.8)
fprintf(fid,'\n\n The design is OK');
else
fprintf(fid,'\n\n Redidesign');
end
else
fprintf(fid,'\n\n The given column is long column');
end
if (d2==6)
fprintf(fid,'\n\n Diameter of laetral ties = 6 mm');
elseif (d2<=8)
fprintf(fid,'\n\n Diameter of lateral ties = 8 mm');
else
fprintf(fid,'\n\n Diameter of lateral ties = 10 mm');
end
Design of columns
----------------
The given column is a short column
The design is OK