MATLAB: Is this because of the variable being in a table? If so, how to convert to an array. MATLABstatistics Error using sum Invalid data type. First argument must be numeric or logical. Error in var (line 148) y = sum(abs(x – sum(x,dim)./n).^2, dim) ./ denom; Error in std (line 51) y = sqrt(var(varargin{:})); Best Answer table2array Related QuestionHow to calculate subs inside a loopOnly the last user input is being stored, the rest are being replaced by zeros in the array.Manipulating cells in array.How to calculate the mean of a certain column of tables inside a cellHow to use ‘rowfun’ to calculate stats for rows in a table
Best Answer