Matlab: Obtaining an exact decimal number from a csv file -
i have csv file have decimal numbers 1.1, 1.10, 1.100. when load file in matlab using importdata or textscan, show these numbers same: 1.1 discarding 0's @ end. but, have different meaning of them.
is there anyway recover?
thanks, sam
you're saying mean different 1.1 1.100000? mathematically, same number (i sincerely hope know already).
so if "numbers" don't have same meaning numbers in of strictly defined mathematical number systems (which matlab assumes case), should import them strings (%s
) rather numbers (%d
, %f
, etc.), , process them such.
Comments
Post a Comment