could anyone help me how to find the difference between two cell arrays

조회 수: 1 (최근 30일)
jaah navi
jaah navi 2021년 7월 18일
댓글: jaah navi 2021년 7월 18일
I am having two cell arrays A and B
A= 5x1 cell
B= 5x1 cell
here A is
10x2 double
10x2 double
10x2 double
10x2 double
10x2 double
B is
10x2 double
10x2 double
10x2 double
10x2 double
10x2 double
Now I want to find the difference of each value present in first column of A with first column of B and second column of A with second column of B for all 10x2 double.
Could anyone please help me on this.

답변 (1개)

KSSV
KSSV 2021년 7월 18일
Run a loop or use:
C=cellfun(@minus,A,B,'UniformOutput',false);
  댓글 수: 1
jaah navi
jaah navi 2021년 7월 18일
Thanks. As a next step, could you please help me how to find the difference between first and second column in C.

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

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by