<html lang="en"> <head> <title>Cell Arrays - GNU Octave</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Octave"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Data-Containers.html#Data-Containers" title="Data Containers"> <link rel="prev" href="Structures.html#Structures" title="Structures"> <link rel="next" href="Comma-Separated-Lists.html#Comma-Separated-Lists" title="Comma Separated Lists"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Cell-Arrays"></a> <p> Next: <a rel="next" accesskey="n" href="Comma-Separated-Lists.html#Comma-Separated-Lists">Comma Separated Lists</a>, Previous: <a rel="previous" accesskey="p" href="Structures.html#Structures">Structures</a>, Up: <a rel="up" accesskey="u" href="Data-Containers.html#Data-Containers">Data Containers</a> <hr> </div> <h3 class="section">6.2 Cell Arrays</h3> <p><a name="index-cell-arrays-454"></a> It can be both necessary and convenient to store several variables of different size or type in one variable. A cell array is a container class able to do just that. In general cell arrays work just like N-dimensional arrays with the exception of the use of ‘<samp><span class="samp">{</span></samp>’ and ‘<samp><span class="samp">}</span></samp>’ as allocation and indexing operators. <ul class="menu"> <li><a accesskey="1" href="Basic-Usage-of-Cell-Arrays.html#Basic-Usage-of-Cell-Arrays">Basic Usage of Cell Arrays</a> <li><a accesskey="2" href="Creating-Cell-Arrays.html#Creating-Cell-Arrays">Creating Cell Arrays</a> <li><a accesskey="3" href="Indexing-Cell-Arrays.html#Indexing-Cell-Arrays">Indexing Cell Arrays</a> <li><a accesskey="4" href="Cell-Arrays-of-Strings.html#Cell-Arrays-of-Strings">Cell Arrays of Strings</a> <li><a accesskey="5" href="Processing-Data-in-Cell-Arrays.html#Processing-Data-in-Cell-Arrays">Processing Data in Cell Arrays</a> </ul> </body></html>