How to store data values from uitable

1 次查看(过去 30 天)
How would I go about storing data values typed into a uitable as globals or otherwise?

回答(1 个)

Walter Roberson
Walter Roberson 2013-8-16
DataCell = get(UitableHandle, 'Data');
global_variable_1 = DataCell{5,7}; %for example
  8 个评论
James Hendren
James Hendren 2013-8-16
so how do I make it to where the user can edit the value?
Walter Roberson
Walter Roberson 2013-8-16
You should investigate the CellEditCallback property; see http://www.mathworks.com/help/matlab/ref/uitableproperties.html#brgcv4s
You would set it to the handle of a function; the function would execute when a cell is edited. In the function you would change the global variable.
You should consider alternatives.

请先登录,再进行评论。

类别

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