MATLAB: How to plot a cell array

cell arrayplotplot cell

I have a cell: Behaviourcoded {} 285768×1 with numerical values.
The data consists of 1,2,3 – which represent a behaviour variable.
Each point represents 1/500sec.
I am wanting to plot the data but im not sure how to plot a cell array.
I have tried this:
figure;
hold on;
cellfun(@plot,Behaviourcoded);
but this does not work. I just get a blank graph.
Thanks Katrina

Best Answer

plot([Behaviourcoded{:}])