为什么我不能使用MapCaplot?

1view (last 30 days)
你好,
I'm trying to preform PCA analysis for a set of values that I get from the attached excel.
我需要对所有40个变量进行预定分析。
Clc
clearall
all
x =可读取('pca table.xlsx');
X=table2array(x);
mapcaplot(x)
当我尝试使用mapCaplot时,我会收到以下错误:
指数在位置2中超过阵列边界(不得超过1)。
Error在mapcaplot> localupdatebrushplots(行201)中
ydata = data(:,index_dim2);
Error在MapCaplot> Localinit(第178行)中
localupdatebrushplot(图);
Error在MapCaplot(第65行)中
localInit(fig,varargin{:});
Error在无标题(第7行)中
mapcaplot(x)
感谢您的帮助。我以前从未尝试过PCA,我不确定功能确切需要作为输入。
谢谢,
露丝
1条评论
Star Strider
Star Strider 在2021年9月9日
If you use the rmmissing Funciton On 'X' ,只剩下两排有效数据。

登录发表评论。

接受的答案

亚当·丹兹(Adam Danz)
亚当·丹兹(Adam Danz) 在2021年9月9日
See the 文档
数据输入应为数字阵列或 DataMatrix 目的。你的是一张桌子。
也看 table2array
5条评论
露丝·皮科夫斯基
露丝·皮科夫斯基 在2021年9月10日
Yeah that's also a good idea. Thank you.

登录发表评论。

更多答案(0)

标签

s manbetx 845


Release

R2020a

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!