필터 지우기
필터 지우기

"Undefined function or method 'eq' for input arguments of type 'cell'."

조회 수: 2 (최근 30일)
Anfal
Anfal 2014년 12월 12일
답변: Sean de Wolski 2014년 12월 12일
i get "Undefined function or method 'eq' for input arguments of type 'cell'." error in this statment find(compare==max(compare)) , compare is a cell .. any help ?

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 12월 12일
You can't take the max of a cell, it's a container. If you want the max of all of the elements in the cell, use cellfun
mxc = cellfun(@(x)max(x(:)),your_cell)
mxc will be the max of each cell and you can then use your above code to figure out which ones are the mask.

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by