how to display data from a cell?

1 view (last 30 days)
asim nadeem
asim nadeem on 13 Aug 2018
Edited: asim nadeem on 13 Aug 2018
I created a cell {{{1,2,3},{4}}, {{1,2},{3,4}}} it has two partitions in it or may be more. What i want in my output is that answer should be in the form {{1,2,3},{4}} i.e a partition which satisfy certain conditions. But my answer is like this ans =
[1x3 double] [4]
  5 Comments
asim nadeem
asim nadeem on 13 Aug 2018
Edited: asim nadeem on 13 Aug 2018
for i= 1:totoal no of partitions
d = C{i};% ith partition
%conditions applied
%say C{1},C{2} are answers
C{i,:}% output

Sign in to comment.

Answers (0)

Categories

Find more on Cell Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!