image thumbnail

updated 7 months ago

RoundX - Round to desired precision by dberm22

Rounds the elements of X with the desired precision. (round, ceil, floor)

roundx(X, decimalplaces, options)

image thumbnail

updated 9 months ago

Decimal Round by Alex May

This function rounds numbers to any given precision. (rounding, decimal, precision)

decround(in,place,type)

image thumbnail

updated 1 year ago

NUMBER SYSTEMS/ BASE CONVERTER by Divakar Roy

Convert a number between different number systems-hex,oct,bin,dec. (symbolic math, convert, change)

NUMBER SYSTEMS BASE CONVERTER

[e,factor]=div2(a)

b=str2num(a)

image thumbnail

updated 2 years ago

Byte data format bits manipulation by Michael Chan

Demonstrate ascii character/ symbol convert to/ from byte formats of decimal, binary and hexadecimal (ascii, character, symbol)

FormatHexStr(Str,format)

asciiToBaseValues(textContents, mode)

baseValuesToAscii(textContentsInBaseValues, mode)

image thumbnail

updated 2 years ago

Binary to Decimal coversion by Raviteja

Convert Binary to Decimal Equivalent. It also convert fractional binary values. (bin2decimal, binary to decimal, fractional)

DEC_VAL=bin2decimal(bin_num)

image thumbnail

updated almost 3 years ago

Find Decimal Equivalent of Binary by Mohammad Saadeh

Find the decimal value of a whole binary number including binary fractions (binary, decimal, digital logic)

find_decimal(binary)

image thumbnail

updated almost 3 years ago

Find Binary Equivalent of Decimal by Mohammad Saadeh

Find binary equivalent of positive decimal, fraction, or combination of both (decimal, binary, digital logic)

find_binary(decimal)

image thumbnail

updated 3 years ago

Improved Base Expansion Algorithm by Alexander Wallar

This is an improvement of my last base expansion algorithm (base, expansion, algorithm)

baseVecExpand(n,c,b)

image thumbnail

updated 4 years ago

Efficient convertors between binary and decimal numbers by Zacharias Voulgaris

Alternatives to the built-in functions bin2dec & dec2bin, exhibiting a somewhat faster performance. (binary, decimal, conversion)

b2d(x)

d2b(x)

image thumbnail

updated almost 5 years ago

ROUND2DP by Andrew

Round a number to a given number of decimal places (round, decimal, precision)

round2dp(x,y)

image thumbnail

updated almost 5 years ago

Rounding Off Number(s) to Specified Significant Figures by Yuzo Toya

Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. (significant figures, significant digits, rounding)

N=spa_sf(X,SF)

image thumbnail

updated 6 years ago

Q15 to decimal converter by Szymon Leja

Silmple function that converts an value from Q15 to decimal. (signal processing, q15, dec)

[y]=q152dec(x,form)

image thumbnail

updated 7 years ago

from decimal to two's complement by Moatasem Chehaiber

a function to convert a decimal number into 2's complement number of defined size (wireless, twos complement, decimal)

vector=dec2bit(x,size)

image thumbnail

updated 7 years ago

Galois Field Array to Decimal Array Conversion by Murad Qahwash

convert fg array to decimal numbers (coding theory, information theory, gf)

gf2dec(GFInput,m,prim_poly)

image thumbnail

updated 8 years ago

JDEC2HEX by Michael Kleder

Uses Java to convert arbitrary length decimal to hex (for nonnegative integers) (symbolic math, decimal, hex)

h=jdec2hex(d)

image thumbnail

updated 8 years ago

RECI:Calculates the reciprocal of a number with desired accuracy by Divakar Roy

Reciprocal calculation giving answer with as much decimal digits as is wished. (reciprocal, division, show)

reci(num,acc)

image thumbnail

updated 8 years ago

gc2dec by Arjun Srinivasan Rangamani

Function to convert a gray coded sequence to a decimal sequence. (gray, code to decimal, decimal)

gc2dec(gra)

image thumbnail

updated almost 9 years ago

JHEX2DEC by Michael Kleder

Arbitrary length hex to decimal conversion. (symbolic math, hex, hexadecimal)

c=jhex2dec(h)

image thumbnail

updated 9 years ago

ROUND2 by Mukhtar Ullah

Round to a specified number of decimals. (round, decimal places, utilities)

round2(a, arg1, arg2)

image thumbnail

updated almost 10 years ago

Conversion of Fractions from Binary to Decimal and Vice Versa by Sundar Krishnan

Two functions are described below which will help in conversion of Fractional numbers. (fractions, binary, decimal)

Fr_bin2dec (bin)

Fr_dec2bin (dec)

Contact us