Displaying binary data in a uitable

조회 수: 1 (최근 30일)
Jason
Jason 2017년 2월 27일
댓글: Jason 2017년 2월 27일
How do I show the binary values in a uitable. This was my attempt:
IM=getimage(handles.axes4); %Image data in 16 bit format
data=dec2bin(IM); %get binary representation
%Add all data to uitable
set(handles.uitableResults,'data',[])
columnname={'Binary'};
set(handles.uitableResults,'columnname',columnname);
set(handles.uitableResults,'data',{(data})
  댓글 수: 2
Jan
Jan 2017년 2월 27일
And what happens if you run this code? There is a typo in the last line: the orphaned ( bfore "data" is misplaced.
Jason
Jason 2017년 2월 27일
Thanks Jan

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2017년 2월 27일
편집: Jan 2017년 2월 27일
I assume, the image is 2D? Then what should appear in the table per cell? The single bits or the strings representing the bits? Can you post an example created manually?
Try this:
set(handles.uitableResults, 'data', cellstr(data))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by