Why can't I save very small numbers in a vector?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Joao
am 9 Nov. 2014
Kommentiert: Neelima Dahal
am 31 Jul. 2018
Hello!
My code is getting points like 5e-9 and i am putting these points on a vector. However after i run it i get a vector full of zeros.
Is there anyway to keep the real numbers in the vector.
Thank you
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
per isakson
am 9 Nov. 2014
Bearbeitet: per isakson
am 9 Nov. 2014
The small numbers are there, but not displayed. (My guess.) Try
>> format long
>> a = [1e9,1e-9]
a =
1.0e+09 *
1.000000000000000 0.000000000000000
>> a(2)
ans =
1.000000000000000e-09
>>
0 Kommentare
Siehe auch
Kategorien
Mehr zu Function Creation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!