clustergram does not recognize my data as a datamatrix???

조회 수: 3 (최근 30일)
john borsellino
john borsellino 2013년 10월 2일
답변: john borsellino 2013년 10월 2일
i am trying to create heatmaps using the"clustergram" function...i imported my data, matlab removed the row labels and column lables into a sperate file called "textdata", leaving me with a file called "data" that contains rows of standardized expression data. i typed "x=clustergram(data)... and received an error message stating that my data must be a numeric matrix. when i look at the data file, i see numeric data in rows and columns... WHAT AM I DOING WRONG? as always thanks for the help jb

채택된 답변

john borsellino
john borsellino 2013년 10월 2일
i opened the "data" file and created a new variable, 'Y'. i then typed X=clustergram(Y) and out popped a heatmap...YAY!!!! i then opened the "textdata" file and created 2 new variables for the column of row identifiers(Z) and the row of column identifiers(A) using the set function i wrote..."set(X,'RowLables',Y,'ColumnLables',A) these 2 lines created and labeled the heatmap construct for me.....NOW how do i import the heatmap out of MATLAB???

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by