MATLAB: Converting a table of numeric data into a double array

table

Hi,
I am trying to convert a table of numeric data to a double array using some of the methods presented before in some answers to similar questions like:
1- table2array function
2- X{:,:}
But they both don't work for me. They change the table into a cell, not a double array

Best Answer

I believe it's mean that you have non-numeric data in your table.
Try this:
If T is your table, use cell2mat after table2array.
T_cell = table2array(T);
T_array = cell2mat(T_cell); % T_array is output
% if it is single so after this two lines use:
% T_array = double(T_array)