Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
concatenate cell arrays

Subject: concatenate cell arrays

From: Ondrej

Date: 15 May, 2012 23:51:07

Message: 1 of 3

Hi guys, how can I please concatenate N number of cell arrays which are all 51x6 and have names Table1, Table2, .... TableN into one cell array 51x6*N? I cannot figure it out. I know how to do it manually AllTables = [Table1,. Table2, ... TableN], but that doesn't help me much.
Many Thanks, Ondrej

Subject: concatenate cell arrays

From: TideMan

Date: 16 May, 2012 02:15:18

Message: 2 of 3

On Wednesday, May 16, 2012 11:51:07 AM UTC+12, Ondrej wrote:
> Hi guys, how can I please concatenate N number of cell arrays which are all 51x6 and have names Table1, Table2, .... TableN into one cell array 51x6*N? I cannot figure it out. I know how to do it manually AllTables = [Table1,. Table2, ... TableN], but that doesn't help me much.
> Many Thanks, Ondrej

This demonstrates the folly of naming variables in this way.
Go back to the program that generated the cell arrays and name them as:
Table{1},Table{2}, etc

Subject: concatenate cell arrays

From: Ondrej

Date: 16 May, 2012 03:35:09

Message: 3 of 3

TideMan <mulgor@gmail.com> wrote in message <12055384.0.1337134518585.JavaMail.geo-discussion-forums@pbcte9>...
> On Wednesday, May 16, 2012 11:51:07 AM UTC+12, Ondrej wrote:
> > Hi guys, how can I please concatenate N number of cell arrays which are all 51x6 and have names Table1, Table2, .... TableN into one cell array 51x6*N? I cannot figure it out. I know how to do it manually AllTables = [Table1,. Table2, ... TableN], but that doesn't help me much.
> > Many Thanks, Ondrej
>
> This demonstrates the folly of naming variables in this way.
> Go back to the program that generated the cell arrays and name them as:
> Table{1},Table{2}, etc

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us