is there a built in function to get minimum nr of bits for an integer ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have found the formula for minimum nr of bits for a integer
bspec = floor(log2(16)) + 1
Is there a built in function for this in MATLAB ?
1 Kommentar
dpb
am 2 Okt. 2016
When you write one, there will be... :)
But, what do you need a function for a constant; unless you intended the argument '16' to be a variable based on the length of a word???
If the object is to find out the size of an integer, see
doc class
doc isa
Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!