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

Function to round variable to number of significant figures


Niel (view profile)


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

| Watch this File

File Information

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 release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us