Be the first to rate this file! 20 Downloads (last 30 days) File Size: 12.2 KB File ID: #43143
image thumbnail

Function to round variable to number of significant figures

by

 

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

| Watch this File

File Information
Description

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.

Required Products Simulink
MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us