Nested Cell Array with different size ?

2 views (last 30 days)
mahdi
mahdi on 14 Oct 2014
Commented: Image Analyst on 14 Oct 2014
Hello every body; I have a cell array which includes 4 cell(with different size for example 25,25,27,23 => totally 100), each 4 cells also include numbers.(from 1 to 100). ==> totally 10,000 numbers Each of this 100 number refer to the table which includes 100 cell with different numbers.(from 1~10,000)
I mean I have in this example 10,000 number(from 1~10,000) which ,first partitioned in 100 different cells ,then each 100 cells partitioned in 4 cells. Now I want to decode this nested situation in such a way ==> I need 4 partitions which each of them includes fractional number of 10,000 :( if clear please help me :)
  2 Comments
the cyclist
the cyclist on 14 Oct 2014
It is not at all clear to me what you are trying to do.
I suggest you write a scaled down example (maybe just two cells, with a few numbers), with sample input, and the output you would expect. Try not to just describe the input and output in words. Use MATLAB variable definitions to show what you want.
Image Analyst
Image Analyst on 14 Oct 2014
I have no idea what this is saying. Please read the FAQ and rephrase your post http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F
So you have a 4-cell cell array. Okay, fine. Each of the cells has 10,000 numbers in it. Okay, maybe you have a double array of 10,000 numbers in each cell. Why do you say the cells have sizes 25,25,27, and 23 instead of saying each cell has a size of 10,000? Then you say "each of this 100 number" - what does that mean? Does it mean that one of the 10,000 numbers in the array in one of the cells refers to the table? If so, how. How does it refer to the table? Let's say the number of the first element of the 10,000 array is 42. What does 42 mean with respect to "the table"? And what is this table you're talking about? Then it just gets more confusing from there. Please read the FAQ so you at least know how to use proper terminology.

Sign in to comment.

Answers (0)

Categories

Find more on Resizing and Reshaping Matrices 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!