MATLAB: Matlab table with 2 different type numbers

int64singletabletypecast

Hello all,
I want to put those two types of number inside one table. One column with index int64 and another column with value single….
1359410513
1359410521
1359410529
1359410536
1359410542
1359410548
1359410554
40.299999
39.099998
37.900002
36.799999
35.700001
34.700001
33.599998
But when I put them in one the value says is: 2000 X 2 int64. SO all the values are cut away after dot. like this:
40
39
38
37
36
35
34
can anyone help me with this? how to put them in one table. Thanks

Best Answer

This is because MATLAB does not allow traditional matrices with various types in each row or column. So it will convert the type of one column to match the other.
So you cannot do what you wish, UNLESS you use a cell array, where you can combine anything.