undefined function 'displaytable' for input arguments of type double

Im trying to plot correlataion matrix but im getting error like "undefined function 'displaytable' for input arguments of type double" >> % Correlation matrix of the data. (Figures 3 and 4) % Center X by subtracting off column means X0 = bsxfun(@minus,X,mean(X,1)); S = X0'*X0./(n-1);
%Mean vector, covariance matrix, and correlation matrix xbar = mean(X,1); [R,sigma] = corrcov(S);
corrmat = corrcoef(X); figure; imagesc(corrmat); set(gca,'XTick',1:p); set(gca,'YTick',1:p); set(gca,'XTickLabel',variables); set(gca,'YTickLabel',variables); axis([0 p+1 0 p+1]); grid; colorbar;
figure; displaytable(corrmat,variables); Undefined function 'displaytable' for input arguments of type 'double'.
pls help to solve this...

 採用された回答

Orion
Orion 2014 年 11 月 26 日

0 投票

displaytable is a function available on this page.
Did you download it and put it on your matlab path ?
Otherwise, of course matlab doesn't know the function and tells undefined function.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Distribution Plots についてさらに検索

質問済み:

2014 年 11 月 26 日

回答済み:

2014 年 11 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by