By setting breakpoint on line 13 of the live script GETMASS.mlx I can see that the elements of the array tempsCol is not integers instead they are double.
Therefore, elements of tempsCol cannot be used as array indexes.
Also, RHO_HTF is a variable of size (1×55) whereas tempsCol is (1×20). Therefore, even if tempsCol were of integer / logical class it would give “Index exceeds the number of array elements (55)” error.
Therefore, Some changes in your logic is required so that the tempsCol elements become integers or logical values of size 1×55.