Hi(adsbygoogle = window.adsbygoogle || []).push({});

I'm quite new to MATLAB and I'm stuck on a problem which I think is probably relatively simple. Any help much appreciated!

Right, I have 2 cells, both of dimension 51x1 calledn_cbcandn_load. Each of the 51 rows in then_cbccell contains a 5x1 matrix. Each of the 51 rows in then_loadcell contains a 3x1 matrix.

What I want to do is create a new 3rd cell that contains the data from these 2 cells. It should also be of dimension 51x1 and each row should now have a 8x1 matrix (the first 5 values fromn_cbcand the next 3 values fromn_load).

I always end up with a 51x2 cell, but I want all values in the one column.

Hope that made sense. Any ideas?

Thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Combining 2 two-dimensional cell arrays in MATLAB

**Physics Forums | Science Articles, Homework Help, Discussion**