Undefined operator '-' for input arguments of type 'cell'.
Show older comments
Hi all, I am try to subtract 2 matrices, stored in 2 separate cells, and store the result in a 3rd cell. See below:
ERR_C{1,1}=10^8*(sigT_C{1,1} - recapT_C{1,1});
The error : Undefined operator '-' for input arguments of type 'cell' keeps popping up.
Can someone please assist in rectifying ?
Accepted Answer
More Answers (1)
A. Sawas
on 1 Feb 2018
I would suggest that you make sure that the both sigT_C{1,1} and recapT_C{1,1} are matrices. You can try this code and check if you are still getting the same error:
A = sigT_C{1,1};
B = recapT_C{1,1};
ERR_C{1,1}=10^8*(A-B);
1 Comment
Amir Antonir
on 1 Feb 2018
Categories
Find more on Mathematics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!