round_num

The purpose of this function is to round A in terms of/in steps of B, e.g. round 0.26 in terms of 0.1. This should output 0.3
1 Download
Updated 15 Feb 2021

View License

% % -------------------------------------------------------------------------
% The purpose of this function is to round A in terms of/in steps of B, e.g. round 0.26
% in terms of 0.1. This should output 0.3
% -------------------------------------------------------------------------
% input:
% ======
% A -> Input value to be rounded
% B -> Value used to round A
%
% output:
% ======
% val -> rounded value
%
%==========================================================================

Cite As

Maria Stagno Navarra (2024). round_num (https://www.mathworks.com/matlabcentral/fileexchange/87412-round_num), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0