Create Two Figure Tabs, Shows Up Together

조회 수: 2 (최근 30일)
Alvi Syahrin
Alvi Syahrin 2013년 5월 19일
I'm working with k-means and silhouette in MATLAB GUI. On my MATLAB GUI, there is some push buttons, let us call it 'k-means' and 'silhouette'.
This is the code for the k-means: [g c] = kmeans(data,k,'dist','SqEuclidean'); y = [data g]; t=uitable; set(t,'Data',y) %this line will show the table in figure tab
And this is the code for silhouette: [s,h]=silhouette(data,g,'SqEuclidean');
It works perfectly fine. The silhouette function shows the graphic in figure tab. However, I want to create the table version, too, to see the silhouette value for each row. This is the code I've written:
[s,h]=silhouette(data,g,'SqEuclidean');
z = [data s]
t = uitable;
set(t,'Data',z);
It works but it looks like this:
I want the graphic and table shown in different figure tab.
I have tried add some thing like hold on, so my code was like this: [s,h]=silhouette(data,g,'SqEuclidean'); z = [data s] figure, hold on t = uitable; set(t,'Data',z);
And it is shown like this:
Almost works. But I want the FIGURE 3's background is clear, so there is only table in it.
Any idea how to solve this?

답변 (1개)

Image Analyst
Image Analyst 2013년 5월 19일

카테고리

Help CenterFile Exchange에서 LaTeX에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by