Tofloat function in matlab