Home How to assign a matrix to a cell of a cell array
 I'm working on matlab and try to assign a matrix to one cell of a cell array. However, there was always something wrong. Here is the code:  C = {}; myMatrix = xlsread('myexcelfile'); C{'ID', 'info'} = myMatrix;  Then matlab prompted that "Expected one output from a curly brace or dot indexing expression, but there were 12 results." But if I don't use 'ID' and 'Info' but use '1' and '2' instead, the matrix could be assigned successfully. Could anyone help me? Thanks!