MATLAB: How can i convert GUI uitable data (which is in the form of arrey) in simple matrix form ??

MATLABuitable

How can i convert GUI uitable data (which is in the form of arrey) in simple matrix form ??? So that i can directly perform various operations on them….

Best Answer

d = get(handles.uitable1, 'Data');
if isempty(d)
d = [];
elseif iscell(d)
if ischar(d{1})
d = str2double(d);
else
d = cell2mat(d);
end
else
%no change to d
end
Related Question