This question is closed. Reopen it to edit or answer.
I am getting this error Cell contents assignment to a non-cell array object..I m actually trying to create an array where the elements are functions
2 views (last 30 days)
Dave Behera on 6 Apr 2016
From the error you are getting it seems, that you are adding your functions to something that is not a cell array. I assume that you are using the variable 'h' to hold those function handles. If so, you have not correctly defined it as a cell array:'
h =@(t) cell(k,1); % is not a cell array
h = cell(k,1); % this is correct