How to obtain RowLabels from a clustergram that is saved as a .fig file without the code and data that generated the clustergram.?

조회 수: 1 (최근 30일)
The 'rowlabels' must be embedded somewhere within the .fig file. The fig file has been closed and I have reopened it. I tried to get(gcf,'children' ...) and findobj( ) and get(clustergram). This shouldn't be so difficult but I'm having trouble. Walter Roberson gave me a nice easy way to access a listbox within a plot. Maybe there is a similarly simple way to retreive the 'rowlabel'. Thanks, John Rodgers

채택된 답변

John
John 2013년 5월 17일
I've got the answer to my own question. Here it is: childs=get(gca,'children'); rowDim= get(childs(length(childs)),'YData'); numOfRows=rowDim(2); for n=1:numOfRows g={get(childs(n),'string')}; genelst(n)=g; end
Thanks for suffering my niave understanding of figures and handle. Hope this helps other figure newbies. John Rodgers

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by