How to: Column Cell to Column matrix

2 views (last 30 days)
Hello kity
Hello kity on 1 Mar 2013
Hi
I have 2 cells (or arrays??)
Cell1= 165 x 3 cell array consists of 165 rows each one is a cell
Cell2= 1 x 3 cell
i want all the cells in Cell1 (first column) to be correlated with cell2 (1,1) , Cell1 (second column) to be correlated with cell2 (1,2) and Cell1 (third column) to be correlated with cell2 (1,3)
how can i do this easiest way
  2 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 1 Mar 2013
What do you mean by correlated?
Azzi Abdelmalek
Azzi Abdelmalek on 1 Mar 2013
When you type
whos a b % a and b are your 2 cell array
What you've got?

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 1 Mar 2013
a=num2cell(rand(165,3))
b=num2cell(rand(1,3))
c=[a;b]

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!