Function to round variable to number of significant figures

版本 1.0.0.0 (12.2 KB) 作者: Niel
This function (or Simulink subsystem) rounds any variable to a given amount of significant figures.
267.0 次下载
更新时间 2013/8/20

查看许可证

This function can be incorporated into a Simulink model to round a variable to a predetermined number of significant figures. The constant at the bottom is n+1, where n is the number of significant figures required.

引用格式

Niel (2025). Function to round variable to number of significant figures (https://www.mathworks.com/matlabcentral/fileexchange/43143-function-to-round-variable-to-number-of-significant-figures), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

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