Diff matrix in cell array
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Michal Oktawiec
el 1 de Jul. de 2019
Comentada: Michal Oktawiec
el 2 de Jul. de 2019
Hello,
I have cell array where is 2000 matrix 4000x100. I would like to subtract each cell in matrix: A(i,j)-B(i,j+1). It is possible to use diff function for this operation? I have tried to do it, but I get same errors.
Y=arrayfun(@{diff(1,1,2)},A)
I would be grateful for any information you can provide.
Best regards
2 comentarios
Stephen23
el 1 de Jul. de 2019
What is A? What is B ? How are they related to your cell array?
It would help if you gave us a small example of the input/s and the expected output arrays.
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

