필터 지우기
필터 지우기

hsv histogram into uitable

조회 수: 1 (최근 30일)
ima
ima 2020년 6월 19일
답변: Nipun Agarwal 2020년 6월 19일
I want to export data from hsv histogram into uitable.
can somebody help me?
i already try.
this is my code.
i=getimage(handles.axes1);
hsvImage = rgb2hsv(i);
hImage = hsvImage(:, :, 1);
hHist = histogram(hImage);
set(handles.uitable1,'Data',hHist);
but there are error. it say Error using matlab.ui.control.Table/set
While setting property 'Data' of class 'Table':
Values within a cell array must be numeric, logical, or char

답변 (1개)

Nipun Agarwal
Nipun Agarwal 2020년 6월 19일
Hey,
It seems like the problem is because of the ‘Data’ variable you are using in set function. There might be a possibility that ‘Data’ variable has garbage data which is not of the form of char, numeric or Boolean data. You can refer to this link for more information regarding the set function and its properties.
You can also refer to this previous answer for better understanding.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by