Solving The Figure Tab on MATLAB GUI -


i'm working k-means , silhouette in matlab gui. on matlab gui, there push buttons, let call 'k-means' , 'silhouette'.

this code k-means:

[g c] = kmeans(data,k,'dist','sqeuclidean');

y = [data g];

t=uitable;

set(t,'data',y) %this line show table in figure tab

and code silhouette:

[s,h]=silhouette(data,g,'sqeuclidean');

it works fine. silhouette function shows graphic in figure tab. however, want create table version, too, see silhouette value each row. code i've written:

[s,h]=silhouette(data,g,'sqeuclidean');

z = [data s]

t = uitable;

set(t,'data',z);

it works looks this:

problem1

i want graphic , table shown in different figure tab.

i have tried add thing hold on, code this:

[s,h]=silhouette(data,g,'sqeuclidean');   z = [data s]   figure, hold on   t = uitable;   set(t,'data',z); 

and shown this:

problem2

almost works. want figure 3's background clear, there table in it.

any idea how solve this?

you can want removing hold on.

if you'd rather have both plot , table in same figure next each other, can adjust position of table this:

set(t, 'position', [left bottom width height]) 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -