Carbon Nanotube Diameter and Metallicity Calculator
A simple function that calculates the diameter (in nanometers) and metallicity (metallic or semiconducting) of a carbon nanotube using an input scalar or vector of n and m chiral indices.
The return value, metallic, is a scalar or vector with a value of 1 if the tube is metallic or 0 if the tube is semiconducting.
Examples:
[d, metallic] = calcCNTDiameter(6,5)
d = 7.4697e-01
metal = 0
[d,metallic] = calcCNTDiameter([6,7],[5,7])
d = 7.4697e-01
9.4939e-01
metal = 0
1
Cite As
Steven Shimizu (2024). Carbon Nanotube Diameter and Metallicity Calculator (https://www.mathworks.com/matlabcentral/fileexchange/45694-carbon-nanotube-diameter-and-metallicity-calculator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.