The second, your inputs may contain fractions and are un-fit to be used as integers. If you want to convert because of the first reason - then there's no need to: Matlab works with double type by default and often treats doubles as ints (for example, when used as indices).