Matlab Example Tensile Strength for Carbon Nanotube Program

 

Matlab Program:

 

T_100= 100*10^9;

T_200 =200*10^9; % TENSILE STRENGHT FOR CARBON NANOTUBE.

D = (0.25:0.25:25); % DIAMETER IN METERS.

F_100 = T_100.*((pi.*D.^2)./4);

F_200 = T_200.*((pi.*D.^2)./4);

figure(1);

plot(D, F_100, D, F_200), title(‘Diameter Vs. Force (Carbon Nanotube)’);

xlabel(‘Diameter, m’);

ylabel(‘Force, N’);

legend(‘TS 100 GPa’, ‘TS 200 GPa’);