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

8 vues (au cours des 30 derniers jours)
jaah navi le 18 Juil 2021
Commenté : jaah navi le 18 Juil 2021
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.
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (1)

KSSV le 18 Juil 2021
Run a loop or use:
C=cellfun(@minus,A,B,'UniformOutput',false);
##### 1 commentaireAfficher -1 commentaires plus anciensMasquer -1 commentaires plus anciens
jaah navi le 18 Juil 2021
Thanks. As a next step, could you please help me how to find the difference between first and second column in C.

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by