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 Kommentare

Jan
Jan am 27 Feb. 2017
And what happens if you run this code? There is a typo in the last line: the orphaned ( bfore "data" is misplaced.
Jason
Jason am 27 Feb. 2017
Thanks Jan

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Jan
Jan am 27 Feb. 2017
Bearbeitet: Jan am 27 Feb. 2017

0 Stimmen

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))

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Feb. 2017

Kommentiert:

am 27 Feb. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by