MATLAB: Plotting data from cell array.

cell arrayimported data

Hi!
I have my imported data in a form of 512×1 cell array and each of the cells contains an 8×1 array. How do I plot the data? I have tried solution at https://se.mathworks.com/matlabcentral/answers/351612-plot-data-from-cell-array , but to no success. Thanks in advance for your reply.

Best Answer

Read about cell2mat .
% some random data
K = cell(512,1) ;
for i = 1:512
K{i} = rand(8,1) ;
end
val = [K{:}] ;
plot(val) ;
Related Question