Convert between SI and CGS units

版本 1.0.0 (2.4 KB) 作者: Rishabh Datta
Convert values from SI to cgs and vice versa for common physical quantities
5.0 次下载
更新时间 2021/7/5

查看许可证

out = cgs2SI(val,type)
% Convert from cgs to SI units
% Example usage:
v = cgs2SI(10,'Velocity'); % Velocity, [cm/s] to [m/s]
B = cgs2SI(1,'Magnetic Field'); % Magnetic Field, [T] to [gauss]
out = SI2cgs(val,type)
% Convert from SI to cgs units
% Example usage:
v = SI2cgs(10,'Velocity'); % Velocity, [m/s] to [cm/s]
B = SI2cgs(1,'Magnetic Field'); % Magnetic Field, [gauss] to [T]

引用格式

Rishabh Datta (2024). Convert between SI and CGS units (https://www.mathworks.com/matlabcentral/fileexchange/95353-convert-between-si-and-cgs-units), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0