set data into UITABLE
13 次查看(过去 30 天)
显示 更早的评论
%I have a n*m matrix which all elements strings
num1=[1;2;3] %points id
num2=[30.45;32.55;33.85] %points latitudes
num3=[40.55;41.22;43.62] %points longitudes
num=[num1 num2 num3] %points id, latitude longitude
num=num2str(num)
set(handles.listbox1, 'String', num) %to write into the listbox in the GUI
% How can I write these data into UITABLE in GUI like as I write into listbox above?
0 个评论
采纳的回答
Walter Roberson
2013-11-11
Before converting with num2str(), use
num_as_cell = num2cell(num);
and then
set(Uitable_Handle_Goes_Here, 'Data', num_as_cell)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!