could anyone tell me how to overcome the error Undefined function 'max' for input arguments of type 'cell'.

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

the line you provided is correct, but o_th seems to be a cell. you might be able to convert it with cell2mat
could you please help me how to convert it with cell2mat.
please see this link-https://in.mathworks.com/help/matlab/ref/cell2mat.html it will help you
thanks the command one=max(cell2mat(o_th(:,:,:))) works.

Sign in to comment.

Answers (0)

Categories

Asked:

on 12 Apr 2018

Commented:

on 13 Apr 2018

Community Treasure Hunt

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

Start Hunting!