Info

This question is closed. Reopen it to edit or answer.

how can I use arrays with different cell types

1 view (last 30 days)
aidin
aidin on 19 Sep 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
I'm starting to develop a project which uses multi-dimensional arrays very often. my arrays are mostly 2 , 3 dimensional or so. As a 2D array sample consider 'A', I may have 2 or more 1D arrays in a cell.
sth like
A=[1, [78,9] [10,65], 9;
2 , 3 , 6;
7 , [9,1] , [91,41,96][10,-1]]
As you saw in 'A(1,2)' there are two 1D arrays. I don't know which structure I should use to achieve such thing. moreover I want to be able to have access to all those 1D arrays.
please share your knowledge with me.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 19 Sep 2014
Edited: Azzi Abdelmalek on 19 Sep 2014
A={1 [78,9] [10,65] 9
2 3 6 11
7 [9,1] [91,41,96] [10,-1]}

Community Treasure Hunt

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

Start Hunting!