필터 지우기
필터 지우기

How to: Column Cell to Column matrix

조회 수: 1 (최근 30일)
Hello kity
Hello kity 2013년 3월 1일
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
Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 1일
What do you mean by correlated?
Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 1일
When you type
whos a b % a and b are your 2 cell array
What you've got?

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 1일
a=num2cell(rand(165,3))
b=num2cell(rand(1,3))
c=[a;b]

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by