Why is my table displaying "1 x 1 table" instead of the actual values
10 views (last 30 days)
I have a matrix with 400 rows and 6 columns, let's call it "matrix 1".
I want to create a table from "matrix 1" but I want each column of my new table to be the values of 20 rows of column 4 of "matrix 1" (row 1 to 20 in the 1st column; row 21 to 40 in the 2nd column etc), I used this code :
table_matrix1=table(matrix1(1:20, 4),matrix1(21:40, 4),matrix1(41:60, 4))
As a result I get a table which is only displaying "1 x 1 table" in each cell and not the actual values of these cells, and I'd like to create an excel file from this output which is not working... Do you have an idea of what I could do differently to obtain a table with the actual numeric values?
Thanks a lot!