how to get data and set into table in guide

hello there i write a program about image processing. i want to process image and then put the information i get it and show on a table in gui. for example
axes(handles.PRW2)
S=getimage(handles.PRW1);
Bw1=rgb2gray(S)<100;
Bw1=imfill(Bw1,'holes');
x=get(handles.edit1,'String')
x1=str2double(x)
Bw2=bwareaopen(Bw1,x1);
Bwarea=sum(sum(Bw2));
set(handles.text1,'string',num2str(Bwarea))
insted of set data in static text show date on a cell of table

 Accepted Answer

mohammad - depending upon the dimensions of your table, you would update it in much the same way as updating the static text control as
set(handles.uitable1,'Data',data);
where data is a cell array that has been appropriately updated with (at least) your Bwarea.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!