Improved Base Expansion Algorithm

This is an improvement of my last base expansion algorithm
901 Downloads
Aktualisiert 18 Jan 2011

Lizenz anzeigen

The difference between this algorithm and the other one that i posted is that it takes a vector as an input instead of a number. This is useful if the number you are trying to convert has digits bigger than 9.

Example:

>> baseVecExpand
n = [1 15 13 2]
starting base = 16
base of expanded number = 9

ans =

1 2 1 5 1

>>

My base expansion algorithms use input statements. All you need to do type in is baseVecExpand and the function will start running. you can also use it like a regular function

the regular funciton is baseVecExpand(number, base of number, base you want the number to be)

Zitieren als

Alexander Wallar (2024). Improved Base Expansion Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/30035-improved-base-expansion-algorithm), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2010a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Logical finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.1.0.0

improvements

1.0.0.0