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

1 次查看(过去 30 天)
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);

类别

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