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:
Trouble with cell2mat

Subject: Trouble with cell2mat

From: Matthew Little

Date: 5 Mar, 2013 10:11:06

Message: 1 of 2

I'm trying to to convert a cell with 7500661x1 data points into a matrix. Each data point has a same format.
However when I try to use cell2mat or cellfun, I get the same error:
Error using cat
Dimensions of matrices being concatenated are not consistent.

Error in cell2mat (line 84)
            m{n} = cat(1,c{:,n});

I was wondering if anyone could enlighten me as to what I am doing wrong.

Thanks in advance.

Subject: Trouble with cell2mat

From: Kristin

Date: 19 Mar, 2013 23:25:06

Message: 2 of 2

"Matthew Little" wrote in message <kh4gbq$nqo$1@newscl01ah.mathworks.com>...
> I'm trying to to convert a cell with 7500661x1 data points into a matrix. Each data point has a same format.
> However when I try to use cell2mat or cellfun, I get the same error:
> Error using cat
> Dimensions of matrices being concatenated are not consistent.
>
> Error in cell2mat (line 84)
> m{n} = cat(1,c{:,n});
>
> I was wondering if anyone could enlighten me as to what I am doing wrong.
>
> Thanks in advance.

Have you tried:
F = [mycell{:}]?

Tags for this Thread

No tags are associated with 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