uitable set handles for logical

조회 수: 1 (최근 30일)
sermet
sermet 2014년 4월 29일
답변: Image Analyst 2014년 4월 29일
%I have a blank uitable in GUI. 3 columns and several rows.
%I wanna place checkbox in 3th column in this uitable.
% 1th column for string, 2th for numeric and 3th column for logical (checkbox).
%my datas are;
a={'p1'; 'p2'; 'p3'} %points id
b=[200;250;300] %distances
b=num2cell(b)
% for 3th column I wanna create blank checkbox (false) for these data into my uitable in GUI.

채택된 답변

Image Analyst
Image Analyst 2014년 4월 29일
You can create it in GUIDE and then look at the source code it created to build the grid. If you don't want to continue using GUIDE for some reason and want to do it the hard way and build it yourself, then you'll have to copy over the code where it sets up the grid. Or else slog through the uitable() documentation.

추가 답변 (0개)

카테고리

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