What is the minimum number greater than zero in matlab?
Mostra commenti meno recenti
If I type this: 0.24703282292062327209e-323
I get: 4.9407e-324
If I type this: 0.24703282292062327208e-323
I get: 0
What is the minimum non zero number that matlab uses. It is obviously not realmin = 2.2251e-308 or eps 2.2204e-16.
How can find the true minimum non zero number?
Risposta accettata
Più risposte (2)
Azzi Abdelmalek
il 19 Mar 2013
n = realmin
Walter Roberson
il 19 Mar 2013
>> a = sprintf('%.800g', eps(realmin))
a =
4.940656458412465441765687928682213723650598026143247644255856825006755072702087518652998363616359923797965646954457177309266567103559397963987747960107818781263007131903114045278458171678489821036887186360569987307230500063874091535649843873124733972731696151400317153853980741262385655911710266585566867681870395603106249319452715914924553293054565444011274801297099995419319894090804165633245247571478690147267801593552386115501348035264934720193790268107107491703332226844753335720832431936092382893458368060106011506169809753078342277318329247904982524730776375927247874656084778203734469699533647017972677717585125660551199131504891101451037862738167250955837389733598993664809941164205702637090279242767544565229087538682506419718265533447265625e-324
1 Commento
James Tursa
il 20 Mar 2013
On PC's the above won't work and you will have to do this:
num2strexact(eps(realmin))
The NUM2STREXACT function can be found on the FEX here:
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!