File Exchange

image thumbnail

Function to round variable to number of significant figures

version 1.0 (12.2 KB) by

This function (or Simulink subsystem) rounds any variable to a given amount of significant figures.



View License

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.

Comments and Ratings (0)

MATLAB Release
MATLAB 8.0 (R2012b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video