Cell size changes to 49x50 when used in callback function in guide. Can anyone help me out with that?
Show older comments
I have a cell addStrArr which is initiated as cell(5,3) in a function and the cell elements are updated in the callback function named additem_Callback. But the cell size changes to 49x50 in the callback function. I am unable to comprehend. The callback function is as follows.
function additem_Callback(hObject, eventdata, handles)
global addStrArr;
size(addStrArr) % This gives correct size
a=get(hObject,'Tag');
b=a(2) % Say b=1
c=a(3) % Say c=2
f=get(hObject,'String')
addStrArr{b,c}=f % This results in size of 49x50.
addStrArr
size(addStrArr)
Can anyone help out?
Accepted Answer
More Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!