Professional Documents
Culture Documents
Column
Column
m 1 of 2
clc;
clear all;
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');
8/10/23 9:18 PM C:\Users\Best Lap\Desktop\...\column.m 2 of 2
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