If clr is a cell array of strings, the length of clr must be equal to the length of x, y and z.

1 回表示 (過去 30 日間)
yue li
yue li 2018 年 9 月 7 日
コメント済み: yue li 2018 年 9 月 7 日
Hello, I have problem in gscatter3(). The link of gscatter3 is as follow:
https://www.mathworks.com/matlabcentral/fileexchange/37970-gscatter3
Thanks in advance for any help!
>> stage265_tran=stage265';
>> [~, scores,pcvars]=pca(stage265_tran);
>> x265=zscore(scores(:,1));
>> y265=zscore(scores(:,2));
>> z265=zscore(scores(:,3));
>> gscatter3(x265,y265,z265,cellstr(tmp265),{'b','g','m'},{'.','.','.'},15)
If clr is a cell array of strings, the length of clr must be equal to the length of x, y and z.
In my workspace:
stage265_tran <265x100>
scores <265x100>
pcvars <100x1>
x265 <265x1>
y265 <265x1>
z265 <265x1>
tmp265 <1x265>
  1 件のコメント
yue li
yue li 2018 年 9 月 7 日
clr, the 5th parameter,has only three elements,tmp265 should only has three elements

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by