could anyone tell me how to overcome the error Undefined function 'max' for input arguments of type 'cell'.
Show older comments
could anyone tell me how to overcome the error Undefined function 'max' for input arguments of type 'cell' with respect to the command line one=max(o_th(:,:,:))
5 Comments
Dennis
on 12 Apr 2018
the line you provided is correct, but o_th seems to be a cell. you might be able to convert it with cell2mat
Prabha Kumaresan
on 12 Apr 2018
Dennis
on 12 Apr 2018
you can try:
one=max(cell2mat(o_th(:,:,:)))
bidyut mandi
on 12 Apr 2018
please see this link-https://in.mathworks.com/help/matlab/ref/cell2mat.html it will help you
Prabha Kumaresan
on 13 Apr 2018
Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!